project
Define a project.
Classes:
| Name | Description |
|---|---|
Project |
A project is used to organize your artifacts. |
Functions:
| Name | Description |
|---|---|
set_project |
Set the current project. |
get_project |
Get the current project. |
Project(model: ProjectSelectOne | ProjectSelect)
#
A project is used to organize your artifacts.
Methods:
| Name | Description |
|---|---|
create_or_get |
Create project with the given name and description. Load project if the given name already exists. |
load_all |
Load all projects. |
update |
Update the current project. |
__enter__ |
Set |
__exit__ |
Restore previous Project.CURRENT. |
list_fitted_datasets |
List all datasets in this project. |
list_trained_models |
List all trained models in this project. |
list_explanations |
List all explanations in this project. |
list_computed_statistics |
List all statistics in this project. |
delete |
Delete this project. |
Attributes:
| Name | Type | Description |
|---|---|---|
CURRENT |
ContextVar[Project]
|
|
model |
|
Source code in src/xpdeep/project.py
CURRENT: ContextVar[Project] = ContextVar('CURRENT_PROJECT')
#
model = model
#
create_or_get(*, name: str, description: str = '') -> Project
#
Create project with the given name and description. Load project if the given name already exists.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
|
str
|
Name of the project to create. If a project within this name already exists, it will be loaded |
required |
|
str
|
Description of the new created project. Ignored in case of project loading. |
""
|
Source code in src/xpdeep/project.py
load_all() -> list[Project]
#
Load all projects.
Source code in src/xpdeep/project.py
update(*, name: str | None = None, description: str | None = None) -> None
#
Update the current project.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
|
str | None
|
New project's name. |
None
|
|
str | None
|
New project's description. |
None
|
Source code in src/xpdeep/project.py
__enter__() -> Self
#
__exit__(exc_type: type[BaseException] | None, exc_val: BaseException | None, exc_tb: TracebackType | None) -> None
#
list_fitted_datasets() -> list[FittedParquetDataset]
#
List all datasets in this project.
Source code in src/xpdeep/project.py
list_trained_models() -> list[TrainedModelArtifact]
#
List all trained models in this project.
Source code in src/xpdeep/project.py
list_explanations() -> list[ExplanationArtifact]
#
List all explanations in this project.
Source code in src/xpdeep/project.py
list_computed_statistics(dataset: FittedParquetDataset) -> list[ExplanationStatisticSelect]
#
List all statistics in this project.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
|
FittedParquetDataset
|
Dataset on which the statistics were computed. |
required |
Source code in src/xpdeep/project.py
delete() -> None
#
Delete this project.
Also deletes all artifacts in this project recursively. WARNING: not recoverable