Table of Contents

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

sampleIndex int

The 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 sampleIndex is less than 0 or greater than or equal to SampleCount.