forked from srishti-jain/cross-domain-recommendation
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathSequenceOfEvents.txt
executable file
·15 lines (14 loc) · 1.03 KB
/
SequenceOfEvents.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
Database: https://research.chicagobooth.edu/kilts/marketing-databases/dominicks
sales data(ccount.dta): http://kilts.chicagobooth.edu/dff/store-demos-customer-count/ccount_stata.zip
store data(demo.dta): http://kilts.chicagobooth.edu/dff/store-demos-customer-count/demo_stata.zip
1. Download ccount.dta, demo.dta. Run dtaToCsv, and retailData.csv is generated
2. Run almanac.py to get output_almanac.csv.
3. All output_almanac.csv were compiled, and we had CompiledWeather.csv
4. Modify first row of Compiled weather to key,c1,c2....c11
5. Run topFive.py, and get top5trending.csv
6. Run trendprocessing.py. This adds a column 'key' to top5trending.csv, which is 'zip/date'
7. Create a folder named 'saveHMM'. Run method1.py. It performs:
(a) ReadDataAndMakeHMM : dumps HMMs to 'saveHMM' folder. Create a file named 'hmmRecords.csv' ( "hmmno","key", "MaxByNormalizedQty")
(b) loadHMMs : loads HMMS from folder and data from 'hmmRecords.csv'
(c) main stuff : save predictions to 'predictedData.csv'
8. Run compareTables.py, this gives mean value.