trained_model_artifact
Trained model.
Classes:
| Name | Description |
|---|---|
TrainedModelArtifact |
Trained model class, representing a trained model artifact. |
TrainedModelArtifact
#
Trained model class, representing a trained model artifact.
This object is build after finishing a training process, and should never be built manually. It is not allowed to update an instance of it as it is also saved remotely. However, it is still safe to update its name and description
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
|
str
|
|
required |
|
str
|
|
required |
|
str
|
|
required |
|
str
|
|
required |
|
str
|
|
required |
|
str
|
|
required |
|
str
|
|
required |
|
str
|
|
required |
|
str
|
|
required |
|
str
|
|
required |
|
str
|
|
required |
|
str
|
|
required |
|
str
|
|
required |
|
str
|
|
required |
|
str
|
|
required |
|
str
|
|
required |
|
str
|
|
required |
Attributes:
| Name | Type | Description |
|---|---|---|
additional_properties |
str
|
dict() -> new empty dictionary dict(mapping) -> new dictionary initialized from a mapping object's (key, value) pairs dict(iterable) -> new dictionary initialized as if via: d = {} for k, v in iterable: d[k] = v dict(**kwargs) -> new dictionary initialized with the name=value pairs in the keyword argument list. For example: dict(one=1, two=2) |
Methods:
| Name | Description |
|---|---|
__setattr__ |
Set attribute. |
load_all |
Load all explanations of the current project. |
get_by_id |
Get Explanation artifact by its ID. |
get_by_name |
Get Explanation artifact by its name. |
delete |
Delete the current object remotely. |
__setattr__(attr: str, value: object) -> None
#
Set attribute.
Source code in src/xpdeep/model/trained_model_artifact.py
load_all() -> list[TrainedModelArtifact]
#
Load all explanations of the current project.
Source code in src/xpdeep/model/trained_model_artifact.py
get_by_id(trained_model_id: str) -> TrainedModelArtifact
#
Get Explanation artifact by its ID.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
|
str
|
The ID of the explanation artifact to retrieve. |
required |
Source code in src/xpdeep/model/trained_model_artifact.py
get_by_name(trained_model_id: str) -> TrainedModelArtifact
#
Get Explanation artifact by its name.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
|
str
|
The name of the explanation artifact to retrieve. |
required |
Source code in src/xpdeep/model/trained_model_artifact.py
delete() -> None
#
Delete the current object remotely.