---
search:
  boost: 0.5
---

[//]: # (DO NOT EDIT THIS FILE DIRECTLY. Instead, edit the corresponding stub file and execute `npm run docs:api`.)

# <code class="doc-symbol doc-symbol-class"></code> `Dataset` {#safeds.data.labeled.containers.Dataset data-toc-label='[class] Dataset'}

A dataset is used as input to machine learning models.

**Type parameters:**

| Name | Upper Bound | Description | Default |
|------|-------------|-------------|---------|
| `I` | [`Any?`][safeds.lang.Any] | The type of the input data. | - |
| `O` | [`Any?`][safeds.lang.Any] | The type of the output data. | - |

**Inheritors:**

- [`ImageDataset`][safeds.data.labeled.containers.ImageDataset]
- [`TabularDataset`][safeds.data.labeled.containers.TabularDataset]
- [`TimeSeriesDataset`][safeds.data.labeled.containers.TimeSeriesDataset]

??? quote "Stub code in `Dataset.sdsstub`"

    ```sds linenums="9"
    class Dataset<out I, out O>
    ```
    { data-search-exclude }
