GtzanDataLoaderOptions
Options & Configuration · AiDotNet.Data.Audio.Benchmarks
Configuration options for the GTZAN music genre classification loader.
How It Works
GTZAN (Tzanetakis & Cook 2002) — 10 genres × 100 30-second clips each = 1,000 mono WAV files at 22,050 Hz. The canonical music genre classification benchmark, despite known label noise. Useful for MIR research entry-level evaluation.
Constructors
| Constructor | Summary |
|---|---|
GtzanDataLoaderOptions() |
Properties
| Property | Summary |
|---|---|
DatasetSplit Split { get; set; } |
Gets or sets which split of the dataset is loaded. |
bool AutoDownload { get; set; } |
Gets or sets whether the dataset is downloaded into the data directory when it is not there. |
double TrainFraction { get; set; } |
Train/test split fraction (per-class deterministic). |
int SampleRate { get; set; } |
Sample rate for resampling. |
int Samples { get; set; } |
Number of samples per clip. |
int? MaxSamples { get; set; } |
Gets or sets the most samples loaded; null loads the whole split. |
string DataPath { get; set; } |
Gets or sets the dataset root directory; null uses the default data directory for this dataset. |
Methods
| Method | Summary |
|---|---|
void Validate() |
Validates that all option values are within acceptable ranges. |