unionml.model.ModelArtifact#

class unionml.model.ModelArtifact(model_object: Any, hyperparameters: Optional[Union[unionml.model.BaseHyperparameters, dict]] = None, metrics: Optional[Dict[str, float]] = None)#

Model artifact, containing a specific model object and optional metrics associated with it.

Create new instance of ModelArtifact(model_object, hyperparameters, metrics)

Methods

Attributes

hyperparameters

hyperparameters associated with the model object

metrics

metrics associated with the model object

model_object

model object

hyperparameters: Optional[Union[unionml.model.BaseHyperparameters, dict]]#

hyperparameters associated with the model object

metrics: Optional[Dict[str, float]]#

metrics associated with the model object

model_object: Any#

model object