dump module defines the
dump(file_name, predictions=None, algo=None, verbose=0)¶
A basic wrapper around Pickle to serialize a list of prediction and/or an algorithm on drive.
What is dumped is a dictionary with keys
- file_name (str) – The name (with full path) specifying where to dump the predictions.
- predictions (list of
Prediction) – The predictions to dump.
- algo (
Algorithm, optional) – The algorithm to dump.
- verbose (int) – Level of verbosity. If
1, then a message indicates that the dumping went successfully. Default is
A basic wrapper around Pickle to deserialize a list of prediction and/or an algorithm that were dumped on drive using
Parameters: file_name (str) – The path of the file from which the algorithm is to be loaded Returns: A tuple
predictionsis a list of
Algorithmobject. Depending on what was dumped, some of these may be