Method GetSample
- Namespace
- LMKit.Finetuning
- Assembly
- LM-Kit.NET.dll
GetSample(int)
Retrieves a training sample from the dataset based on the provided sample index.
public TrainingSample GetSample(int sampleIndex)
Parameters
sampleIndexintThe index of the sample to retrieve. Must be within the range of available samples, as specified by the SampleCount property.
Returns
- TrainingSample
A TrainingSample instance representing the sample at the specified index.
Exceptions
- ArgumentOutOfRangeException
Thrown when the
sampleIndexis less than 0 or greater than or equal to SampleCount.