xpdeep
Xpdeep.
Modules:
Name | Description |
---|---|
client_factory |
The client factory module is responsible for creating a client instance. |
dataset |
Manage data upload to be processed by xpdeep. |
explain |
Define the explain package, used to compute explanations. |
filtering |
Filtering module. |
initialize |
Initialize the API. |
metrics |
Implement metric objects, to be used to monitor the training or in the explanation. |
model |
The model package provides tools for working with Xpdeep models. |
project |
Define a project. |
trainer |
Define the trainer package, used to train the XpdeepModel. |
utils |
Utils package. |
Classes:
Name | Description |
---|---|
Project |
A project is used to organize your artifacts. |
Functions:
Name | Description |
---|---|
init |
Initialize the Xpdeep API with an API key. |
get_project |
Get the current project. |
set_project |
Set the current project. |
__all__ = ('Project', 'get_project', 'init', 'set_project')
#
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
Source code in src/xpdeep/project.py
init(api_key: str, api_url: str = 'https://xpdeep.com/api') -> None
#
Initialize the Xpdeep API with an API key.
To generate an API key, please refer to the documentation.
https://docs.xpdeep.com/latest/Getting%20started/installation/#get-an-api-key