Log Metrics and Params
To log metadata of a model from SuperAlign package, use dictionary format with key representing the name of the field and the value representing the value of the field. Logged metadata will be associated with an existing model.
Logging inside model decorator
Using log
method, metrics and parameters can be added to a model version.
When log
method is invoked inside the model decorator, the metrics, and parameters are added to the version of the model that is registered by the decorator. The model is named sales forcast
in this case.
Logging outside the model decorator
Logging can be done outside the model decorator in the following ways:
By default, log method adds the metadata to the latest version of the model. Metadata can be added to a particular version of a model by providing version parameter as the following:
Expected Output
If executed successfully, SuperAlign outputs the following: