fynance.models.recurrent_neural_network.LongShortTermMemory.train_on¶
-
LongShortTermMemory.
train_on
(X, y, H, C)¶ Trains the neural network model.
Parameters: - X, y, H, C : torch.Tensor
Respectively inputs, outputs, states and cell memory to train model.
Returns: - torch.nn.modules.loss
Loss outputs.
- torch.Tensor
Updated states of the model.
- torch.Tensor
Cell memory of the model.