GtzanDataLoader<T>
Models & Types · AiDotNet.Data.Audio.Benchmarks
Loads the GTZAN music genre classification dataset (Tzanetakis & Cook 2002).
Inheritance: DataLoaderBase<T> → InputOutputDataLoaderBase<T, Tensor<T>, Tensor<T>> → GtzanDataLoader<T>
How It Works
Expects the canonical Marsyas mirror layout:
Auto-download fetches the canonical Marsyas tarball.
Per-class deterministic split: first TrainFraction of the 100
clips per genre go to train, the rest to test/validation.
Features Tensor[N, Samples]; labels Tensor[N, 10] one-hot.
Constructors
| Constructor | Summary |
|---|---|
GtzanDataLoader(GtzanDataLoaderOptions options) |
Properties
| Property | Summary |
|---|---|
int FeatureCount { get; } |
|
int OutputDimension { get; } |
|
int TotalCount { get; } |
|
string Description { get; } |
|
string Name { get; } |
Methods
| Method | Summary |
|---|---|
ValueTuple<IInputOutputDataLoader<T, Tensor<T>, Tensor<T>>, IInputOutputDataLoader<T, Tensor<T>, Tensor<T>>, IInputOutputDataLoader<T, Tensor<T>, Tensor<T>>> Split(double trainRatio, double validationRatio, int? seed) |