loudml icon indicating copy to clipboard operation
loudml copied to clipboard

Exception thrown at the end of the forecast command

Open jorgelbg opened this issue 6 years ago • 4 comments

While trying to use the forecast command in the terminal (inside the Docker container) I get the following exception:

INFO:root:missing data: field 'value', metric 'max', bucket: 2018-11-22T14:30:00Z
INFO:root:missing data: field 'value-derive', metric 'mean', bucket: 2018-11-22T15:00:00Z
INFO:root:missing data: field 'value', metric 'max', bucket: 2018-11-22T15:00:00Z
INFO:root:found 52 time periods
Traceback (most recent call last):
  File "/usr/bin/loudml", line 11, in <module>
    load_entry_point('loudml==1.4', 'console_scripts', 'loudml')()
  File "/usr/lib/python3.5/dist-packages/loudml/cli.py", line 611, in main
  File "/usr/lib/python3.5/dist-packages/loudml/cli.py", line 409, in exec
  File "/usr/lib/python3.5/dist-packages/loudml/timeseries.py", line 1405, in forecast
ValueError: could not broadcast input array from shape (2) into shape (1)

Executed command:

$ loudml forecast --from "now" --to "now+1d" avg_clickouts

LoudML version: loudml/community:1.4.3.

The loudml predict command succeeds without any issue.

jorgelbg avatar Nov 21 '18 15:11 jorgelbg

Hi Jorge, it's hard to tell at first glance. It is possible to attach your model.json settings file and a small data-set so we can reproduce and patch this issue quickly?

It's a multivariate model, is it?

regel avatar Nov 27 '18 20:11 regel

Hi @regel, yes it's a multivarate model. It has a couple of features. You can check the model.json in this gist. Let me see if I can export some data for the sample dataset.

jorgelbg avatar Nov 30 '18 09:11 jorgelbg

Nice model;) thanks for the extra info, it will help

regel avatar Nov 30 '18 16:11 regel

Hi @jorgelbg, we rolled out significant changes into 1.5.0 which is now OSS. It's a significant departure from the previous version: no support for multivariate models at this time, and a new model type 'donut'.

regel avatar Feb 25 '19 07:02 regel