SubsetSampler
Models & Types ยท AiDotNet.Data.Sampling
A sampler that returns a subset of indices.
Inheritance: DataSamplerBase โ SubsetSampler
How It Works
SubsetSampler is useful when you want to train on a specific subset of your data, such as a validation split or a filtered dataset.
Constructors
| Constructor | Summary |
|---|---|
SubsetSampler(IEnumerable<int> indices, bool shuffle, int? seed) |
Initializes a new instance of the SubsetSampler class. |
Properties
| Property | Summary |
|---|---|
bool Shuffle { get; set; } |
Gets or sets whether to shuffle the indices each epoch. |
int Length { get; } |