Skip to content

Instantly share code, notes, and snippets.

@A-safarji
Last active January 5, 2022 18:32
Show Gist options
  • Select an option

  • Save A-safarji/8b5ce9d48c17c78fb37ceac5fc595711 to your computer and use it in GitHub Desktop.

Select an option

Save A-safarji/8b5ce9d48c17c78fb37ceac5fc595711 to your computer and use it in GitHub Desktop.
neuralprophet with spliting
### with spliting train and test
m = NeuralProphet()
df_train, df_test = m.split_df(apple_features, valid_p=0.3,freq='D')
# fiting
metricss = m.fit(df_train, validation_df=df_test , freq='D',epochs=1000)
# predict
forecast = model.predict(df_train)
# plot
fig_forecast = model.plot(forecast)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment