InputHelper<T, TInput>
Helpers & Utilities · AiDotNet.Helpers
Provides helper methods for input-related operations.
Methods
| Method | Summary |
|---|---|
T GetElement(TInput input, int row, int column) |
Gets an element at the specified position from the input data structure. |
T GetFeatureValue(TInput input, int featureIndex) |
Retrieves a specific feature value from an input item. |
TInput CreateSingleItemBatch(TInput item) |
Creates a batch containing a single item. |
TInput GetBatch(TInput input, int[] indices) |
Extracts a batch of data from the input based on the specified indices. |
TInput GetItem(TInput input, int index) |
Retrieves a single item from a batch of input data. |
int GetBatchSize(TInput input) |
Gets the batch size from the input data. |
int GetInputSize(TInput input) |
Gets the size of the input data. |