mirror of https://github.com/tracel-ai/burn.git
d50bac165e | ||
---|---|---|
.. | ||
examples | ||
src | ||
.gitignore | ||
Cargo.toml | ||
README.md |
README.md
Custom CSV Dataset
The custom-csv-dataset example implements the Dataset
trait to retrieve dataset elements from a .csv
file on disk. For this example, we use the diabetes dataset (original source).
The dataset only contains 442 records, so we use InMemDataset::from_csv(path)
method to read the csv dataset file into a vector (in-memory) of DiabetesPatient
records (struct) with the help of serde
.
Example Usage
cargo run --example custom-csv-dataset