Expand description
§Burn Dataset
Datasets, transformations and data sources for Burn.
Applications enable the dataset feature of burn (also enabled by train) and use this crate as
burn::data::dataset.
Datasetis random access by index.InMemDatasetholds items in memory, and thesqlitefeature addsSqliteDatasetfor datasets larger than memory.transform: mapping, sampling, shuffling, windowing, partial views, selection and composition of datasets, applied lazily.source: dataset downloads, including Hugging Face datasets.vision,nlp,audio: ready-made datasets such as MNIST, CIFAR, image folders, AG News and Speech Commands, behind the features of the same names.
§Feature flags
sqlite: SQLite-backed datasets, using the Turso engine.sqlite-bundledis a deprecated alias.vision,nlp,audio: domain datasets and loaders.builtin-sourcesenables the downloadable vision and NLP datasets.dataframe: datasets backed by a PolarsDataFrame.network: file downloads.fake: generated datasets for tests.tracing: instrument operations with thetracingcrate.
Modules§
Structs§
- Dataset
Error - Default error type used by
Datasetimplementations that don’t define their own. - Dataset
Iterator - Dataset iterator.
- Huggingface
Dataset Loader sqlite - Load a dataset from huggingface datasets.
- InMem
Dataset - Dataset where all items are stored in ram.
- Sqlite
Dataset sqlite - This struct represents a dataset where all items are stored in an SQLite database. Each instance of this struct corresponds to a specific table within the SQLite database, and allows for interaction with the data stored in the table in a structured and typed manner.
- Sqlite
Dataset Storage sqlite - The
SqliteDatasetStoragestruct represents a SQLite database for storing datasets. It consists of an optional name, a database file path, and a base directory for storage. - Sqlite
Dataset Writer sqlite - This
SqliteDatasetWriterstruct is a SQLite database writer dedicated to storing datasets. It retains the current writer’s state and its database connection.
Enums§
- Importer
Error sqlite - Error type for HuggingfaceDatasetLoader.
- RowError
sqlite - Error raised while deserializing a row into the target type.
- Sqlite
Dataset Error sqlite - Sqlite dataset error.
Traits§
- Dataset
- The dataset trait defines a basic collection of items with a predefined size.
Type Aliases§
- Result
sqlite - Result type for the sqlite dataset.