Hi nice peopleI use ARMA MODEL to forecast values but when i call predict method I have this error : attributeerror: 'nonetype' object has no attribute 'predict'for p in range(100):
64 for q in range(100):
65 try:
66 self._model = ARMA(ts_arma_model, order=order).fit(full_output= False, transparams=False, disp=False)
when I do what you say me josef I have this error :ts=2018-10-19T14:52:04.258+02:00 lvl=info msg="UDF log" service=kapacitor task_master=main task=arma_responsetime_absipevwp54 node=arma_model2 text=" self.handler.end_batch(request.end)"
ts=2018-10-19T14:52:04.258+02:00 lvl=info msg="UDF log" service=kapacitor task_master=main task=arma_responsetime_absipevwp54 node=arma_model2 text=" File \"/tmp/kapacitor_udf/kapacitor/udf/agent/py/arma_model.py\", line 170, in end_batch"
ts=2018-10-19T14:52:04.258+02:00 lvl=info msg="UDF log" service=kapacitor task_master=main task=arma_responsetime_absipevwp54 node=arma_model2 text=" forecast = self._state.arma_model()"
ts=2018-10-19T14:52:04.258+02:00 lvl=info msg="UDF log" service=kapacitor task_master=main task=arma_responsetime_absipevwp54 node=arma_model2 text=" File \"/tmp/kapacitor_udf/kapacitor/udf/agent/py/arma_model.py\", line 91, in arma_model"
ts=2018-10-19T14:52:04.258+02:00 lvl=info msg="UDF log" service=kapacitor task_master=main task=arma_responsetime_absipevwp54 node=arma_model2 text=" forecast = self._model.predict(start_date.isoformat(), end_date.isoformat())"
ts=2018-10-19T14:52:04.258+02:00 lvl=info msg="UDF log" service=kapacitor task_master=main task=arma_responsetime_absipevwp54 node=arma_model2 text=" File \"/usr/local/lib/python2.7/dist-packages/statsmodels/base/wrapper.py\", line 95, in wrapper"
ts=2018-10-19T14:52:04.263+02:00 lvl=info msg="UDF log" service=kapacitor task_master=main task=arma_responsetime_absipevwp54 node=arma_model2 text=" obj = data.wrap_output(func(results, *args, **kwargs), how)"
ts=2018-10-19T14:52:04.263+02:00 lvl=info msg="UDF log" service=kapacitor task_master=main task=arma_responsetime_absipevwp54 node=arma_model2 text=" File \"/usr/local/lib/python2.7/dist-packages/statsmodels/tsa/arima_model.py\", line 1506, in predict"
ts=2018-10-19T14:52:04.271+02:00 lvl=info msg="UDF log" service=kapacitor task_master=main task=arma_responsetime_absipevwp54 node=arma_model2 text=" return self.model.predict(self.params, start, end, exog, dynamic)"
ts=2018-10-19T14:52:04.271+02:00 lvl=info msg="UDF log" service=kapacitor task_master=main task=arma_responsetime_absipevwp54 node=arma_model2 text=" File \"/usr/local/lib/python2.7/dist-packages/statsmodels/tsa/arima_model.py\", line 719, in predict"
ts=2018-10-19T14:52:04.271+02:00 lvl=info msg="UDF log" service=kapacitor task_master=main task=arma_responsetime_absipevwp54 node=arma_model2 text=" self._get_prediction_index(start, end, dynamic))"
ts=2018-10-19T14:52:04.271+02:00 lvl=info msg="UDF log" service=kapacitor task_master=main task=arma_responsetime_absipevwp54 node=arma_model2 text=" File \"/usr/local/lib/python2.7/dist-packages/statsmodels/tsa/arima_model.py\", line 651, in _get_prediction_index"
ts=2018-10-19T14:52:04.271+02:00 lvl=info msg="UDF log" service=kapacitor task_master=main task=arma_responsetime_absipevwp54 node=arma_model2 text=" super(ARMA, self)._get_prediction_index(start, end, index))"
ts=2018-10-19T14:52:04.271+02:00 lvl=info msg="UDF log" service=kapacitor task_master=main task=arma_responsetime_absipevwp54 node=arma_model2 text=" File \"/usr/local/lib/python2.7/dist-packages/statsmodels/tsa/base/tsa_model.py\", line 479, in _get_prediction_index"
ts=2018-10-19T14:52:04.280+02:00 lvl=info msg="UDF log" service=kapacitor task_master=main task=arma_responsetime_absipevwp54 node=arma_model2 text=" raise KeyError('The `start` argument could not be matched to a'"
ts=2018-10-19T14:52:04.280+02:00 lvl=info msg="UDF log" service=kapacitor task_master=main task=arma_responsetime_absipevwp54 node=arma_model2 text="KeyError: 'The `start` argument could not be matched to a location related to the index of the data.'"
ts=2018-10-19T14:52:04.280+02:00 lvl=info msg="UDF log" service=kapacitor task_master=main task=arma_responsetime_absipevwp54 node=arma_model2 text="2018-10-19 14:52:04,280 ERROR:root: error processing request of type end: 'The `start` argument could not be matched to a location related to the index of the data.'"
ts=2018-10-19T14:52:04.280+02:00 lvl=error msg="received error message" service=kapacitor task_master=main task=arma_responsetime_absipevwp54 node=arma_model2 err="error processing request of type end:
'The `start` argument could not be matched to a location related to the index of the data.'"