UrbanSound8kDataLoaderOptions
Options & Configuration · AiDotNet.Data.Audio.Benchmarks
Configuration options for the UrbanSound8K data loader.
How It Works
UrbanSound8K contains 8,732 labeled sound excerpts (<=4s) of urban sounds in 10 classes: air conditioner, car horn, children playing, dog bark, drilling, engine idling, gun shot, jackhammer, siren, street music. 10 predefined cross-validation folds.
Constructors
| Constructor | Summary |
|---|---|
UrbanSound8kDataLoaderOptions() |
Properties
| Property | Summary |
|---|---|
DatasetSplit Split { get; set; } |
Dataset split to load. |
bool AutoDownload { get; set; } |
Automatically download if not present. |
double MaxDurationSeconds { get; set; } |
Maximum audio duration in seconds. |
int SampleRate { get; set; } |
Sample rate in Hz. |
int TestFold { get; set; } |
Cross-validation fold to use as test (1-10). |
int? MaxSamples { get; set; } |
Optional maximum number of samples to load. |
string DataPath { get; set; } |
Root data path. |
Methods
| Method | Summary |
|---|---|
void Validate() |
Validates that all option values are within acceptable ranges. |