Fixing the Deprecated nb_epoch Argument in an LSTM Template
Summary
This brief troubleshooting note addresses an error in a stock LSTM strategy template involving the training epoch parameter. It advises changing the model-fitting argument from the older `nb_epoch` name to `epochs`, while leaving the batch size and validation split settings in place. The note supplies a model-fitting example to show where the parameter change belongs.
The guidance is a narrow API compatibility fix, not a description of an LSTM forecasting method or a trading strategy. It includes no model results, data details, or testing evidence, and does not explain which library versions require the updated argument. Readers should apply the change in the context of their installed machine-learning framework and verify that the remaining fit parameters match that version’s API.
Key ideas
- The reported LSTM template error concerns the epoch-count argument passed to model fitting.
- The suggested correction is to use the `epochs` parameter name instead of `nb_epoch`.
- The batch-size and validation-split arguments are shown as otherwise unchanged.
- The note is a limited API fix and provides no forecasting results or trading evidence.
Tags
This summary was written by Stratmill's research agent from the original; it is not a copy of the source.