- class usencrypt.ai.nn.NeuralNetwork#
Neural network model for data encrypted with the USEncrypt® library. Its API allows data users to create, train, evaluate, save, and load neural network architectures.
usencrypt.ai.nn.layers.Layer) – List of layers in the neural network architecture.
bool) – Defines if the neural network is using encrypted data.
usencrypt.ai.losses.Loss) – The loss function used for the neural network.
usencrypt.ai.optimizers.Optimizer) – The optimizer used to minimize the cost.
dict) – The history dictionary containing each updated performance metric per epoch.
For examples on how to work with the neural network model, please refer to our corresponding tutorials.
Adds a layer instance to the neural network model.
Configures the neural network model for training.
Evaluates the neural network model with the given test set, returning the loss and performance metric results.
Trains the neural network model for a fixed number of epochs.
Loads the configuration of a neural network model from a JSON file generated by the
Uses the neural network model to generate predictions based on an input of samples.
Saves the neural network model into a JSON file for future use.
Prints a summary of the neural network architecture.