fynance.models.neural_network.MultiLayerPerceptron.state_dict

MultiLayerPerceptron.state_dict(destination=None, prefix='', keep_vars=False)

Returns a dictionary containing a whole state of the module.

Both parameters and persistent buffers (e.g. running averages) are included. Keys are corresponding parameter and buffer names.

Returns:
dict:
a dictionary containing a whole state of the module

Example:

>>> module.state_dict().keys()
['bias', 'weight']