Table of Contents

Method FilterSamplesBySize

Namespace
LMKit.Finetuning
Assembly
LM-Kit.NET.dll

FilterSamplesBySize(int, int)

Filters the training samples by size, removing those that do not fall within the specified range.

public int FilterSamplesBySize(int minSize, int maxSize)

Parameters

minSize int

The minimum size, in tokens, of the samples to retain.

maxSize int

The maximum size, int tokens, of the samples to retain.

Returns

int

The number of samples removed from the dataset.