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

[bug] Future Regressors NN Shared Coef - error when using n_lags>0 and n_forecasts>1 #1592

Open
ourownstory opened this issue Jun 21, 2024 · 0 comments

Comments

@ourownstory
Copy link
Owner

ourownstory commented Jun 21, 2024

Need to debug test_future_regressor_nn_shared_coef_2 in tests/test_future_regressor_nn.py

def test_future_regressor_nn_shared_coef_2():
    log.info("future regressor with NN shared coef 2")

    df = pd.read_csv(TUTORIAL_FILE, nrows=NROWS)

    m = NeuralProphet(
        yearly_seasonality=False,
        weekly_seasonality=False,
        daily_seasonality=True,
        future_regressors_model="shared_neural_nets_coef",
        future_regressors_d_hidden=4,
        future_regressors_num_hidden_layers=2,
        n_forecasts=3,
        n_lags=5,
        drop_missing=True,
    )
    df_train, df_val = m.split_df(df, freq="H", valid_p=0.2)

    # Add the new future regressor
    m.add_future_regressor("temperature")

    metrics = m.fit(
        df_train, validation_df=df_val, freq="H", epochs=EPOCHS, learning_rate=LR, early_stopping=True, progress=False
    )
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