Skip to content

Commit

Permalink
Create a Heroku App #20
Browse files Browse the repository at this point in the history
Added these referneces.
  • Loading branch information
antoinecarme committed Jan 9, 2017
1 parent 575754b commit e82d8ae
Show file tree
Hide file tree
Showing 4 changed files with 309 additions and 0 deletions.
2 changes: 2 additions & 0 deletions tests/references/heroku_build_generic_heroku_model.log
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
0.03user 0.00system 0:00.03elapsed 97%CPU (0avgtext+0avgdata 9512maxresident)k
0inputs+0outputs (0major+1161minor)pagefaults 0swaps
98 changes: 98 additions & 0 deletions tests/references/heroku_test_air_passengers_heroku.log
Original file line number Diff line number Diff line change
@@ -0,0 +1,98 @@
REQUEST_DETAILS {'CSVFile': 'https://vincentarelbundock.github.io/Rdatasets/csv/datasets/AirPassengers.csv', 'Present': '', 'DateFormat': None, 'SignalVar': 'AirPassengers', 'TimeVar': 'time', 'Name': 'model_air_by_tests', 'Horizon': 7}
DATASET_DETECTED_COLUMNS Index(['Unnamed: 0', 'time', 'AirPassengers'], dtype='object')
DATASET_FINAL_COLUMNS Index(['Unnamed: 0', 'time', 'AirPassengers'], dtype='object')
TRAIN_PARAMS (144, 3) Index(['Unnamed: 0', 'time', 'AirPassengers'], dtype='object') time AirPassengers 7
Transformation Model \
0 _AirPassengers _AirPassengers_ConstantTrend_residue_bestCycle...
1 _AirPassengers _AirPassengers_LinearTrend_residue_bestCycle_b...
2 _AirPassengers _AirPassengers_Lag1Trend_residue_bestCycle_byL...
3 _AirPassengers _AirPassengers_Lag1Trend_residue_bestCycle_byL...
4 _AirPassengers _AirPassengers_PolyTrend_residue_bestCycle_byL...

Complexity FitCount FitL2 FitMAPE ForecastCount ForecastL2 \
0 15 109 11.699307 0.0452 28 25.606519
1 31 109 10.412703 0.0385 28 26.271869
2 47 109 10.578571 0.0384 28 26.439472
3 40 109 11.462370 0.0431 28 28.162380
4 31 109 9.881837 0.0365 28 31.384612

ForecastMAPE TestCount TestL2 TestMAPE
0 0.0463 7 35.417653 0.0592
1 0.0483 7 34.641257 0.0561
2 0.0493 7 34.575976 0.0508
3 0.0543 7 40.306826 0.0699
4 0.0616 7 41.393079 0.0737
Forecast Columns Index(['AirPassengers', '_AirPassengers', 'time', 'row_number',
'time_Normalized', '_AirPassengers_ConstantTrend',
'_AirPassengers_ConstantTrend_residue', 'cycle_internal',
'_AirPassengers_ConstantTrend_residue_bestCycle_byL2',
'_AirPassengers_ConstantTrend_residue_bestCycle_byL2_residue',
'_AirPassengers_ConstantTrend_residue_bestCycle_byL2_residue_AR(7)',
'_AirPassengers_ConstantTrend_residue_bestCycle_byL2_residue_AR(7)_residue',
'_AirPassengers_Trend', '_AirPassengers_Trend_residue',
'_AirPassengers_Cycle', '_AirPassengers_Cycle_residue',
'_AirPassengers_AR', '_AirPassengers_AR_residue',
'_AirPassengers_TransformedForecast',
'_AirPassengers_TransformedResidue', 'AirPassengers_Forecast',
'AirPassengers_Residue', 'AirPassengers_Forecast_Lower_Bound',
'AirPassengers_Forecast_Upper_Bound'],
dtype='object')
<class 'pandas.core.frame.DataFrame'>
RangeIndex: 151 entries, 0 to 150
Data columns (total 3 columns):
time 151 non-null float64
AirPassengers 144 non-null float64
AirPassengers_Forecast 151 non-null float64
dtypes: float64(3)
memory usage: 3.6 KB
None
Forecasts
time AirPassengers AirPassengers_Forecast
144 1961.000000 NaN 447.121550
145 1961.083333 NaN 451.204820
146 1961.166667 NaN 503.077824
147 1961.250000 NaN 500.788293
148 1961.333333 NaN 500.554852
149 1961.416667 NaN 527.111316
150 1961.500000 NaN 550.930383


<ModelInfo>
{
"Dataset": {
"Signal": "AirPassengers",
"Time": {
"Horizon": 7,
"TimeMinMax": [
"1949.0",
"1960.91666667"
],
"TimeVariable": "time"
},
"Training_Signal_Length": 144
},
"Model": {
"AR_Model": "AR(7)",
"Best_Decomposition": "_AirPassengers_ConstantTrend_residue_bestCycle_byL2_residue_AR(7)",
"Cycle": "Cycle_Length_12",
"Signal_Transoformation": "None",
"Trend": "ConstantTrend"
},
"Model_Performance": {
"COMPLEXITY": "15",
"MAPE": "0.0463",
"RMSE": "25.6065186111"
}
}
</ModelInfo>




<Forecast>
{"time":{"0":1949.0,"1":1949.0833333333,"2":1949.1666666667,"3":1949.25,"4":1949.3333333333,"5":1949.4166666667,"6":1949.5,"7":1949.5833333333,"8":1949.6666666667,"9":1949.75,"10":1949.8333333333,"11":1949.9166666667,"12":1950.0,"13":1950.0833333333,"14":1950.1666666667,"15":1950.25,"16":1950.3333333333,"17":1950.4166666667,"18":1950.5,"19":1950.5833333333,"20":1950.6666666667,"21":1950.75,"22":1950.8333333333,"23":1950.9166666667,"24":1951.0,"25":1951.0833333333,"26":1951.1666666667,"27":1951.25,"28":1951.3333333333,"29":1951.4166666667,"30":1951.5,"31":1951.5833333333,"32":1951.6666666667,"33":1951.75,"34":1951.8333333333,"35":1951.9166666667,"36":1952.0,"37":1952.0833333333,"38":1952.1666666667,"39":1952.25,"40":1952.3333333333,"41":1952.4166666667,"42":1952.5,"43":1952.5833333333,"44":1952.6666666667,"45":1952.75,"46":1952.8333333333,"47":1952.9166666667,"48":1953.0,"49":1953.0833333333,"50":1953.1666666667,"51":1953.25,"52":1953.3333333333,"53":1953.4166666667,"54":1953.5,"55":1953.5833333333,"56":1953.6666666667,"57":1953.75,"58":1953.8333333333,"59":1953.9166666667,"60":1954.0,"61":1954.0833333333,"62":1954.1666666667,"63":1954.25,"64":1954.3333333333,"65":1954.4166666667,"66":1954.5,"67":1954.5833333333,"68":1954.6666666667,"69":1954.75,"70":1954.8333333333,"71":1954.9166666667,"72":1955.0,"73":1955.0833333333,"74":1955.1666666667,"75":1955.25,"76":1955.3333333333,"77":1955.4166666667,"78":1955.5,"79":1955.5833333333,"80":1955.6666666667,"81":1955.75,"82":1955.8333333333,"83":1955.9166666667,"84":1956.0,"85":1956.0833333333,"86":1956.1666666667,"87":1956.25,"88":1956.3333333333,"89":1956.4166666667,"90":1956.5,"91":1956.5833333333,"92":1956.6666666667,"93":1956.75,"94":1956.8333333333,"95":1956.9166666667,"96":1957.0,"97":1957.0833333333,"98":1957.1666666667,"99":1957.25,"100":1957.3333333333,"101":1957.4166666667,"102":1957.5,"103":1957.5833333333,"104":1957.6666666667,"105":1957.75,"106":1957.8333333333,"107":1957.9166666667,"108":1958.0,"109":1958.0833333333,"110":1958.1666666667,"111":1958.25,"112":1958.3333333333,"113":1958.4166666667,"114":1958.5,"115":1958.5833333333,"116":1958.6666666667,"117":1958.75,"118":1958.8333333333,"119":1958.9166666667,"120":1959.0,"121":1959.0833333333,"122":1959.1666666667,"123":1959.25,"124":1959.3333333333,"125":1959.4166666667,"126":1959.5,"127":1959.5833333333,"128":1959.6666666667,"129":1959.75,"130":1959.8333333333,"131":1959.9166666667,"132":1960.0,"133":1960.0833333333,"134":1960.1666666667,"135":1960.25,"136":1960.3333333333,"137":1960.4166666667,"138":1960.5,"139":1960.5833333333,"140":1960.6666666667,"141":1960.75,"142":1960.8333333333,"143":1960.9166666667,"144":1961.0,"145":1961.0833333333,"146":1961.1666666667,"147":1961.25,"148":1961.3333333333,"149":1961.4166666667,"150":1961.5},"AirPassengers":{"0":112.0,"1":118.0,"2":132.0,"3":129.0,"4":121.0,"5":135.0,"6":148.0,"7":148.0,"8":136.0,"9":119.0,"10":104.0,"11":118.0,"12":115.0,"13":126.0,"14":141.0,"15":135.0,"16":125.0,"17":149.0,"18":170.0,"19":170.0,"20":158.0,"21":133.0,"22":114.0,"23":140.0,"24":145.0,"25":150.0,"26":178.0,"27":163.0,"28":172.0,"29":178.0,"30":199.0,"31":199.0,"32":184.0,"33":162.0,"34":146.0,"35":166.0,"36":171.0,"37":180.0,"38":193.0,"39":181.0,"40":183.0,"41":218.0,"42":230.0,"43":242.0,"44":209.0,"45":191.0,"46":172.0,"47":194.0,"48":196.0,"49":196.0,"50":236.0,"51":235.0,"52":229.0,"53":243.0,"54":264.0,"55":272.0,"56":237.0,"57":211.0,"58":180.0,"59":201.0,"60":204.0,"61":188.0,"62":235.0,"63":227.0,"64":234.0,"65":264.0,"66":302.0,"67":293.0,"68":259.0,"69":229.0,"70":203.0,"71":229.0,"72":242.0,"73":233.0,"74":267.0,"75":269.0,"76":270.0,"77":315.0,"78":364.0,"79":347.0,"80":312.0,"81":274.0,"82":237.0,"83":278.0,"84":284.0,"85":277.0,"86":317.0,"87":313.0,"88":318.0,"89":374.0,"90":413.0,"91":405.0,"92":355.0,"93":306.0,"94":271.0,"95":306.0,"96":315.0,"97":301.0,"98":356.0,"99":348.0,"100":355.0,"101":422.0,"102":465.0,"103":467.0,"104":404.0,"105":347.0,"106":305.0,"107":336.0,"108":340.0,"109":318.0,"110":362.0,"111":348.0,"112":363.0,"113":435.0,"114":491.0,"115":505.0,"116":404.0,"117":359.0,"118":310.0,"119":337.0,"120":360.0,"121":342.0,"122":406.0,"123":396.0,"124":420.0,"125":472.0,"126":548.0,"127":559.0,"128":463.0,"129":407.0,"130":362.0,"131":405.0,"132":417.0,"133":391.0,"134":419.0,"135":461.0,"136":472.0,"137":535.0,"138":622.0,"139":606.0,"140":508.0,"141":461.0,"142":390.0,"143":432.0,"144":null,"145":null,"146":null,"147":null,"148":null,"149":null,"150":null},"AirPassengers_Forecast":{"0":114.7324672457,"1":98.8880245505,"2":155.7078674629,"3":124.7228184916,"4":131.6081936096,"5":151.7538586277,"6":166.3771509065,"7":147.8080619193,"8":125.0133975636,"9":116.3073592052,"10":101.0805108755,"11":133.7039631282,"12":107.0797220141,"13":97.2091362842,"14":160.4302374917,"15":133.9964756601,"16":135.637327771,"17":155.2564525371,"18":181.506098213,"19":170.8144334606,"20":146.0021193249,"21":135.6167292666,"22":111.7288275641,"23":142.3206007306,"24":131.3617068943,"25":129.9455992019,"26":183.1895773735,"27":170.6923191059,"28":160.0984812499,"29":204.0433000162,"30":204.6712416908,"31":200.5673755519,"32":172.3887636314,"33":164.8447726443,"34":140.9978204441,"35":176.5230420105,"36":156.7339621117,"37":155.5908760793,"38":213.9382738403,"39":184.2467328056,"40":179.2058086014,"41":215.2100513405,"42":252.1489556475,"43":229.3132630253,"44":217.1462235026,"45":181.3437241796,"46":171.1848801929,"47":199.4411473132,"48":188.8620856026,"49":179.7097087946,"50":230.5933189693,"51":231.5693315952,"52":235.0885533107,"53":258.4938478551,"54":268.2747768768,"55":263.5244472149,"56":247.3261440248,"57":212.6592153809,"58":190.6885450543,"59":208.5660418942,"60":197.3541279376,"61":191.5599444327,"62":223.688269302,"63":234.1156964883,"64":228.2899908631,"65":268.6068559818,"66":290.9857716409,"67":304.0611002892,"68":260.0328723302,"69":230.1938602275,"70":204.1441064374,"71":233.870980159,"72":225.7394948334,"73":232.4932273348,"74":267.700171388,"75":261.6895170394,"76":268.9108090988,"77":302.1055607995,"78":345.1634699939,"79":365.5944598302,"80":312.4712069567,"81":278.6744810866,"82":246.2199116556,"83":266.8606166994,"84":278.4638303947,"85":276.470586574,"86":313.9199567802,"87":311.4108189134,"88":313.1322049722,"89":349.2763760532,"90":405.4904068253,"91":412.9785658613,"92":370.3174125927,"93":318.0431089342,"94":277.8731040518,"95":301.3651809656,"96":310.4472798038,"97":310.8128632902,"98":339.0088684422,"99":354.9232002792,"100":347.0802900653,"101":387.109098575,"102":452.4003464093,"103":465.3370737213,"104":431.0058638035,"105":362.0207528055,"106":315.7862974547,"107":333.0524308297,"108":343.2617941381,"109":338.0087572589,"110":358.8573998816,"111":362.4537890645,"112":349.7834235661,"113":400.3509294125,"114":469.7274716173,"115":494.772024689,"116":468.983777776,"117":353.2321844667,"118":326.667822706,"119":336.7146074113,"120":349.4024893846,"121":360.5730163981,"122":386.7626115619,"123":407.3819420787,"124":393.4059198848,"125":454.5371493851,"126":496.6580904254,"127":552.5551261208,"128":519.8192778813,"129":414.6210656688,"130":369.3380009963,"131":390.6615625283,"132":418.3210569017,"133":417.1281769182,"134":433.0435098202,"135":414.1290147782,"136":470.3372610723,"137":506.838477174,"138":565.8179456125,"139":620.5163899782,"140":563.7928947073,"141":453.9398146295,"142":425.9431331225,"143":419.1140066036,"144":447.1215497451,"145":451.2048197576,"146":503.0778239211,"147":500.7882927884,"148":500.5548522914,"149":527.1113157561,"150":550.9303833441}}
</Forecast>


3.66user 0.08system 0:04.26elapsed 87%CPU (0avgtext+0avgdata 88400maxresident)k
0inputs+64outputs (0major+28089minor)pagefaults 0swaps
Loading

0 comments on commit e82d8ae

Please sign in to comment.