Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error executing "predict(m, future)" -> Error in x - fits : non-numeric argument to binary operator #79

Closed
Ocanamat opened this issue Mar 3, 2017 · 1 comment

Comments

@Ocanamat
Copy link

Ocanamat commented Mar 3, 2017

Hi guys,

I don't know if this is related to issue #31, or #34, but as I try to generate predictions with the prophet model / object, I get the following error

>single_TS_fcast <- predict(m, future)  

Error in x - fits : non-numeric argument to binary operator
In addition: Warning message:
In mean.default(x, na.rm = TRUE) :
  argument is not numeric or logical: returning NA

Training the model gives me the following output

> m <- prophet(single_TS_prophet)  

STAN OPTIMIZATION COMMAND (LBFGS)
init = user
save_iterations = 1
init_alpha = 0.001
tol_obj = 1e-012
tol_grad = 1e-008
tol_param = 1e-008
tol_rel_obj = 10000
tol_rel_grad = 1e+007
history_size = 5
seed = 981261820
initial log joint probability = -15.0584
Optimization terminated normally: 
  Convergence detected: absolute parameter change was below tolerance

Any ideas? Kind regards

@Ocanamat Ocanamat mentioned this issue Mar 3, 2017
@Ocanamat
Copy link
Author

Ocanamat commented Mar 3, 2017

Solved,

Must be something regarding the handling of the predict() function from 'forecast'.

Alternatively ran

forecast <- prophet:::predict.prophet(m, future)

and it works.

Regards,

@Ocanamat Ocanamat closed this as completed Mar 3, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant