pickle - provides a way to save the network’ parameters as a pickle file.¶
yann.utils.pickle.py contains the definition for the pickle methods. Use pickle
method in the file to save the params down as a pickle file. Note that this only saves the
parameters down and not the architecture or optimizers or other modules. The id of the layers
will also be saved along as dictionary keys so you can use them to create a network.
The documentation follows:
This method loads a pickled network and returns the parameters.
Parameters: infile – Filename of the network pickled by this pickle method. Returns: A dictionary of parameters. Return type: params
pickle(net, filename, verbose=2)¶
This method saves the weights of all the layers.
- net – A yann network object
- filename – What is the name of the file to pickle the network as.
- verbose – Blah..
This will convert a loaded set of parameters to shared variables that could be passed as
Parameters: params – List from