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. |
get_all_projects |
Get all accessible projects. |
Project(id: str, *, name: str | None = None, description: str | None = None)
#
A project is used to organize your artifacts.
Methods:
Name | Description |
---|---|
__enter__ |
Set |
__exit__ |
Restore previous Project.CURRENT. |
list_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. |
delete |
Delete this project. |
downloads |
Download all authorized artifacts. |
Attributes:
Name | Type | Description |
---|---|---|
CURRENT |
ContextVar[Project]
|
|
model |
|
Source code in src/xpdeep/project.py
CURRENT: ContextVar[Project] = ContextVar('CURRENT_PROJECT')
#
model = cast(ProjectModel, get_one_project.sync(id, client=ClientFactory.CURRENT.get()()))
#
__enter__() -> Self
#
__exit__(exc_type: type[BaseException] | None, exc_val: BaseException | None, exc_tb: TracebackType | None) -> None
#
list_datasets() -> list[DatasetModel]
#
List all datasets in this project.
Source code in src/xpdeep/project.py
list_trained_models() -> list[TrainedModelModel]
#
List all trained models in this project.
Source code in src/xpdeep/project.py
list_explanations() -> list[ExplanationModel]
#
List all explanations in this project.
Source code in src/xpdeep/project.py
delete() -> None
#
Delete this project.
Also deletes all artifacts in this project recursively. WARNING: not recoverable