NeuralNetwork.load_model#

usencrypt.ai.nn.NeuralNetwork.load_model(self, file_path, load_layers=True, load_params=True, load_loss=True, load_optimizer=True)#

Loads the configuration of a neural network model from a JSON file generated by the usencrypt.ai.nn.NeuralNetwork.save_model() function.

Parameters
  • file_path (str) – Path for the loaded JSON file.

  • load_layers (bool) – If True, layer information is loaded from the file.

  • load_params (bool) – If True, parameter information is loaded from the file.

  • load_loss (bool) – If True, loss information is loaded from the file.

  • load_optimizer (bool) – If True, optimizer information is loaded from the file.

Raises

FileNotFoundError – If the file located on file_path does not exist.

Examples

For examples on how to work with the neural network model, please refer to our corresponding tutorials.