HomeGuidesAPI ReferenceChangelog
Log In
API Reference

ModelInfo

define a pointer to a machine learning model.

Attributes

NameTypeDescription
keystrmodel storage key.
twin_hardware_idstrhardware ID of the twin associated with this model.
property_valuestrproperty value when using 'by_property' training.
aliasstrmodel alias pointer (version identifier).
model_typestrmlflow model flavour (e.g. sklearn, pyfunc, pytorch).
file_formatstrmodel file format ('pkl' for pickle or 'pt' for PyTorch).
sourcestrmodel storage source (e.g. 'wizata').
property_namestrproperty name when using 'by_property' training.
trained_modelthe trained model object (loaded from repository).
scalerscaler object associated with the model.
fileslistlist of ModelFile of model content.
updated_dateinttimestamp of last update.
metadatadictadditional model metadata.

Methods

add_file()

add a path to list of known path.

detect depending on file type further actions.

NameTypeDefaultDescription
fileModelFileModelFile
return: None

bind_api()

internal method to bind the api to the dto.

NameTypeDefaultDescription
apiApiDtoInterfaceapi client
return: None

from_json()

load this entity from a dict

NameTypeDefaultDescription
obj

identifier()

returns the complete string identifier for this model.

NameTypeDefaultDescription
include_aliasboolFalseinclude the alias pointer or leave it to target the default version.
return: complete identifier of a model.

load()

load the trained model from the repository.

to_json()

convert this entity in a dict that can be json serializable

return: dict