This page provides an overview of all the methods and functions that you can use to save, load and transfer models.
Saves the model in the sparse NeuralFit (
.nf) format. Requires less memory than converting to Keras and then saving in for instance the
Path to save the model to.
Loads a model from the sparse NeuralFit (
Path to a
Convert the model to an equivalent Keras model. Note that there can be very small differences in the outputs of the NeuralFit and equivalent Keras model. Note that this method will automatically import Keras if not yet done. Note: it is not possible to convert recurrent Models to Keras. Please use
The equivalent Keras model.
Convert a Keras model to an equivalent NeuralFit model. Note that there can be very small differences in the outputs of the Keras and equivalent NeuralFit model. Currently it is only possible to convert Keras models that were previously NeuralFit models (i.e., they were created using
to_keras()). In the future it will be possible to convert any Keras model.
A keras model.
An equivalent NeuralFit model.