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

How to split train tests when using n_lags in neural predictors #4

Open
boozesounds opened this issue May 31, 2021 · 0 comments
Open

Comments

@boozesounds
Copy link

https://github.com/erykml/medium_articles/blob/master/Time%20Series/neural_prophet.ipynb

After seeing your good medium article, I wanted to test it with n_lags and n_forecasts, but I get the following error: Do you know a workaround if testing using auto regression?

----> 5 print(f"NeuralProphet:\t{mean_squared_error(df_test['y'], forecast.iloc[-n_forecasts:]['yhat1']):.4f}")
ValueError: Input contains NaN, infinity or a value too large for dtype('float64').

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