fynance.models.neural_network.MultiLayerPerceptron.train

MultiLayerPerceptron.train(mode=True)

Sets the module in training mode.

This has any effect only on certain modules. See documentations of particular modules for details of their behaviors in training/evaluation mode, if they are affected, e.g. Dropout, BatchNorm, etc.

Returns:
Module: self