Exemplo n.º 1
0
def objfunc(order, endog, exog):
    """
    order: (p,d,q)
    endog: endogenous variable
    exog: exogenous variables
    """
    print(endog, order, exog)
    fit = ARIMA(endog, order, exog).fit()
    return fit.aic()
Exemplo n.º 2
0
def objfunc(order, exog, endog):
    from statsmodels.tsa.arima_model import ARIMA
    fit = ARIMA(endog, order, exog).fit()
    return fit.aic()