save

Class method.

save(self, path)

Saving the model to a given file with dill.

The path can be absolut or relative and the ending of the file is arbitrary.

Parameters:

path (str) – String defining the path to the desired file.

For example

>>> model.save('objective.pickle')

will create a file model.pickle containing the nMPyC model object.