Minimal and fast model configuration #222
-
I am running some tests with |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 3 replies
-
My current model is this, which is now much faster already compared to a model with only default attributes. m = NeuralProphet(epochs=1, batch_size=1, train_speed=3, learning_rate=100)
metrics = m.fit(df, freq="Y") |
Beta Was this translation helpful? Give feedback.
-
Ciao @aiwalter First, when trying to speed up training, don't compromise on validation accuracy too much. Further, Finally, you can read up about the settings in the documentation Do yo mind sharing, what dataset and what computer you are working with? |
Beta Was this translation helpful? Give feedback.
Ciao @aiwalter
First, when trying to speed up training, don't compromise on validation accuracy too much.
metrics = m.fit(df, validate_each_epoch=True, valid_p=0.2)
(note: retrain without validation before making actual forecasts)
Further,
train_speed
modifies the default values ofepochs
,batch_size
andlearning_rate
.If you set them manually, do not set
train_speed
. Tip: a larger batch_size actually leads to faster training, usually. I would recommend first having a look at the default values selected and start with those.Finally, you can read up about the settings in the documentation
Do yo mind sharing, what dataset and what computer you are working with?