NeuralNetwork.save_model#

usencrypt.ai.nn.NeuralNetwork.save_model(self, file_path, save_layers=True, save_params=True, save_loss=True, save_optimizer=True)#

Saves the neural network model into a JSON file for future use.

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

  • save_layers (bool) – If True, layer information is saved on the file.

  • save_params (bool) – If True, parameter information is saved on the file.

  • save_loss (bool) – If True, loss information is saved on the file.

  • save_optimizer (bool) – If True, optimizer information is saved on the file.

Examples

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