define a pointer to a machine learning model.
Attributes
| Name | Type | Description |
|---|---|---|
| str | model_type | mlflow model flavour |
| list | files | list of ModelFile of model content. |
Methods
add_file()
add a path to list of known path.
detect depending on file type further actions.
| Name | Type | Default | Description |
|---|---|---|---|
| file | ModelFile | ModelFile | |
| return: None |
bind_api()
internal method to bind the api to the dto.
| Name | Type | Default | Description |
|---|---|---|---|
| api | ApiDtoInterface | api client | |
| return: None |
from_json()
load this entity from a dict
| Name | Type | Default | Description |
|---|---|---|---|
| obj |
identifier()
returns the complete string identifier for this model.
| Name | Type | Default | Description |
|---|---|---|---|
| include_alias | bool | False | include 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