<filename>tests/exog/test_ozone_exogenous_profile.py
import pandas as pd
import numpy as np

import pyaf.ForecastEngine as autof
import pyaf.Bench.TS_datasets as tsds

#get_ipython().magic('matplotlib inline')

b1 = tsds.load_ozone_exogenous()
df = b1.mPastData

#df.tail(10)
#df[:-10].tail()
#df[:-10:-1]
#df.describe()



H = b1.mHorizon;

N = df.shape[0];
for n in [N]:
    df1 = df.head(n);
    lEngine = autof.cForecastEngine()
    lEngine
    #    lEngine.mOptions.mEnableSeasonals = False;
    #    lEngine.mOptions.mEnableCycles = False;
    #    lEngine.mOptions.mEnableARModels = False;
    #    lEngine.mOptions.mDebugCycles = False;
    lExogenousData = (b1.mExogenousDataFrame , b1.mExogenousVariables) 
    lEngine.train(df1 , b1.mTimeVar , b1.mSignalVar, H, lExogenousData);
    lEngine.getModelInfo();
    # lEngine.mSignalDecomposition.mBestModel.mTimeInfo.mResolution
    # lEngine.standardPlots(name = "my_arx_ozone_" + str(n))

<filename>tests/exog/test_ozone_exogenous_profile.py
import pandas as pd
import numpy as np

import pyaf.ForecastEngine as autof
import pyaf.Bench.TS_datasets as tsds

#get_ipython().magic('matplotlib inline')

b1 = tsds.load_ozone_exogenous()
df = b1.mPastData

#df.tail(10)
#df[:-10].tail()
#df[:-10:-1]
#df.describe()



H = b1.mHorizon;

N = df.shape[0];
for n in [N]:
    df1 = df.head(n);
    lEngine = autof.cForecastEngine()
    lEngine
    #    lEngine.mOptions.mEnableSeasonals = False;
    #    lEngine.mOptions.mEnableCycles = False;
    #    lEngine.mOptions.mEnableARModels = False;
    #    lEngine.mOptions.mDebugCycles = False;
    lExogenousData = (b1.mExogenousDataFrame , b1.mExogenousVariables) 
    lEngine.train(df1 , b1.mTimeVar , b1.mSignalVar, H, lExogenousData);
    lEngine.getModelInfo();
    # lEngine.mSignalDecomposition.mBestModel.mTimeInfo.mResolution
    # lEngine.standardPlots(name = "my_arx_ozone_" + str(n))

#get_ipython().magic('matplotlib inline') #df.tail(10) #df[:-10].tail() #df[:-10:-1] #df.describe() #    lEngine.mOptions.mEnableSeasonals = False; #    lEngine.mOptions.mEnableCycles = False; #    lEngine.mOptions.mEnableARModels = False; #    lEngine.mOptions.mDebugCycles = False; # lEngine.mSignalDecomposition.mBestModel.mTimeInfo.mResolution # lEngine.standardPlots(name = "my_arx_ozone_" + str(n))