explanation_artifact
Explanation result as an Artifact.
Classes:
| Name | Description |
|---|---|
ExplanationArtifact |
ExplanationArtifact object. |
ExplanationArtifact
#
ExplanationArtifact object.
This object should never be built manually.
It is not allowed to update an instance of it as it is also saved remotely. It is still safe to update name
and description attributes.
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 |
|
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. |
__repr__ |
Get class representation without results, accessible with |
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. |
visualisation_link: str
#
Compute and return the visualisation link.
__setattr__(attr: str, value: object) -> None
#
Set attribute.
Source code in src/xpdeep/explain/explanation_artifact.py
__repr__() -> str
#
Get class representation without results, accessible with results attribute.
Source code in src/xpdeep/explain/explanation_artifact.py
load_all(type_: Literal['all', 'global', 'local'] = 'all') -> list[ExplanationArtifact]
#
Load all explanations of the current project.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
|
Literal["all", "global", "local"] default "all"
|
Specify which kind of explanations to load. |
'all'
|
Source code in src/xpdeep/explain/explanation_artifact.py
get_by_id(explanation_id: str) -> ExplanationArtifact
#
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/explain/explanation_artifact.py
get_by_name(explanation_name: str) -> ExplanationArtifact
#
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/explain/explanation_artifact.py
delete() -> None
#
Delete the current object remotely.