clearml-docs/docs/fundamentals/projects.md

69 lines
3.2 KiB
Markdown
Raw Normal View History

2021-08-09 07:59:13 +00:00
---
title: Projects
---
2024-11-21 07:47:55 +00:00
Projects are contextual containers for [tasks](task.md) and [models](models.md) (as well as [dataviews](../hyperdatasets/dataviews.md)
when Hyper-Datasets are enabled), providing a logical structure similar to file system folders.
2021-08-09 07:59:13 +00:00
An often useful method is to categorize components into projects according to models or objectives.
Grouping into projects helps in identifying tasks, models, and dataviews when queried.
2021-12-21 11:42:44 +00:00
Projects can be divided into subprojects (and sub-subprojects, etc.) just like files and subdirectories on a
2021-08-09 07:59:13 +00:00
computer, making organization easier.
Projects contain a textual description field for noting relevant information. The WebApp supports markdown rendering
of the description (see [overview](../webapp/webapp_project_overview.md)).
In addition, the project's default output URI can be specified. When new experiments from
the project are executed, the model checkpoints (snapshots) and artifacts are stored in the default output location.
## WebApp
2024-08-04 15:45:38 +00:00
Users can create and modify projects, and see project details in the [WebApp](../webapp/webapp_home.md).
A project's description can be edited in its [overview](../webapp/webapp_project_overview.md) page. Each project's experiments,
2021-08-09 07:59:13 +00:00
models, and dataviews, can be viewed in the project's [experiments table](../webapp/webapp_exp_table.md),
[models table](../webapp/webapp_model_table.md), and [dataviews table](../hyperdatasets/webapp/webapp_dataviews.md).
## Usage
2024-08-04 15:45:38 +00:00
### Creating Projects and Subprojects
2021-08-09 07:59:13 +00:00
2022-05-18 08:49:31 +00:00
When [initializing a task](../clearml_sdk/task_sdk.md#task-creation), its project needs to be specified. If the project entered does not exist, it will be created.
2024-04-24 07:48:14 +00:00
Projects can contain subprojects, just like folders can contain subfolders. Input into the `project_name`
2021-08-09 07:59:13 +00:00
parameter a target project path. The project path should follow the project tree hierarchy, in which the project and
2021-12-21 11:42:44 +00:00
subprojects are slash (`/`) delimited.
2021-08-09 07:59:13 +00:00
For example:
```python
from clearml import Task
Task.init(project_name='main_project/sub_project', task_name='test')
```
2024-08-04 15:45:38 +00:00
Nesting projects works on multiple levels. For example: `project_name=main_project/sub_project/sub_sub_project`.
2021-08-09 07:59:13 +00:00
2021-09-17 21:55:20 +00:00
Projects can also be created using the [`projects.create`](../references/api/projects.md#post-projectscreate) REST API call.
2021-08-09 07:59:13 +00:00
2021-09-09 10:17:46 +00:00
### View All Projects in System
2021-08-09 07:59:13 +00:00
2024-09-08 10:13:57 +00:00
To view all projects in the system, use the [`Task.get_projects()`](../references/sdk/task.md#taskget_projects) class method:
2021-08-09 07:59:13 +00:00
```python
project_list = Task.get_projects()
```
2022-09-04 07:17:44 +00:00
This returns a list of projects sorted by last update time.
2021-08-09 07:59:13 +00:00
2021-09-09 10:17:46 +00:00
### More Actions
2021-08-09 07:59:13 +00:00
2024-08-04 15:45:38 +00:00
For additional ways to work with projects, use the REST API [`projects`](../references/api/projects.md) resource. Some
of the available actions include:
2021-09-17 21:55:20 +00:00
* [`projects.create`](../references/api/projects.md#post-projectscreate) and [`projects.delete`](../references/api/projects.md#post-projectsdelete) - create and delete projects
* [`projects.get_hyper_parameters`](../references/api/projects.md#post-projectsget_hyper_parameters) - get a list of all hyperparameter sections and names used in a project
* [`projects.merge_projects`](../references/api/projects.md#post-projectsmerge) - merge projects into a single project
2021-08-09 07:59:13 +00:00
2021-09-17 21:55:20 +00:00
See more in the [REST API reference](../references/api/projects.md#projects).
2021-08-09 07:59:13 +00:00