API Reference

ModelInfo

define a pointer to a machine learning model.

Attributes

NameTypeDescription
strmodel_typemlflow model flavour
listfileslist of ModelFile of model content.

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