pystruct.utils.
SaveLogger
(file_name, save_every=10, verbose=0)[source]¶Logging class that stores the model periodically.
Can be used to back up a model during learning. Also a prototype to demonstrate the logging interface.
Parameters: | file_name : string
save_every : int (default=10)
verbose : int (default=0)
|
---|
Methods
load () |
Load the model stoed in file_name and return it. |
save (learner, file_name) |
Save the model to location specified in file_name. |