clearml-docs/docs/hyperdatasets/task.md
pollfly 79eff642ff
Some checks are pending
CI / build (push) Waiting to run
Small edits (#1033)
2025-02-09 19:46:40 +02:00

33 lines
724 B
Markdown

---
title: Tasks
---
Hyper-Datasets extend the ClearML [**Task**](../fundamentals/task.md) with [Dataviews](dataviews.md).
## Usage
Hyper-Datasets are supported by the `allegroai` Python package.
### Connecting Dataviews to a Task
Use [`Task.connect()`](../references/sdk/task.md#connect) to connect a Dataview object to a Task:
```python
from allegroai import DataView, Task
task = Task.init(project_name='examples', task_name='my task')
dataview = DataView()
task.connect(dataview)
```
### Accessing a Task's Dataviews
Use `Task.get_dataviews()` to access the Dataviews that are connected to a Task.
```python
task.get_dataviews()
```
This returns a dictionary of Dataview objects and their names.