Skip to content

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

@boozesounds

Description

@boozesounds

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').

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions