grid search - Python - ARIMA parameters auto-tuning -
i trying adapt this example case, aim obtain similar auto.arima():
at_tuples = tuple(train['averagetemperature'].values) endog = at_tuples def objfunc(order, endog): fit = arima(endog, order).fit() return fit.aic() grid = (slice(1, 3, 1), slice(1, 3, 1), slice(1, 3, 1)) brute(objfunc, grid, args=(endog), finish=none)
when run code get:
typeerror: objfunc() takes 2 positional arguments 45 given
i'm not sure it, suppose concern type of format of at_tuples
.
Comments
Post a Comment