ElasticDistributedSamplerOptions
Options & Configuration · AiDotNet.Data.Sampling
Configuration options for elastic distributed sampling.
Constructors
| Constructor |
Summary |
ElasticDistributedSamplerOptions() |
|
Properties
| Property |
Summary |
bool DropLast { get; set; } |
Whether to drop the remainder so all replicas get exactly DatasetSize/NumReplicas samples. |
bool Shuffle { get; set; } |
Whether to shuffle indices each epoch. |
int DatasetSize { get; set; } |
Total number of samples in the dataset. |
int NumReplicas { get; set; } |
Number of distributed workers (replicas). |
int Rank { get; set; } |
Rank of the current worker (0-based). |
int? Seed { get; set; } |
Random seed for reproducibility. |
Methods
| Method |
Summary |
void Validate() |
Validates that all option values are within acceptable ranges. |