clearml-docs/docs/hyperdatasets/task.md

32 lines
666 B
Markdown
Raw Normal View History

2021-06-20 22:00:16 +00:00
---
title: Tasks
---
Hyper-Datasets extend the **ClearML** [**Task**](../fundamentals/task.md) with [Dataviews](dataviews.md)
2021-06-20 22:00:16 +00:00
## Usage
Hyper-Datasets are supported by the `allegroai` python package.
2021-06-20 22:00:16 +00:00
### 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
dataview = DataView()
task.connect(dataview)
```
### Accessing a Task's Dataviews
Use the `Task.get_dataviews` method to access the Dataviews that are connected to a Task.
2021-06-20 22:00:16 +00:00
```python
task.get_dataviews():
```
This returns a dictionary of Dataview objects and their names.