CsvDataLoader<T>
Models & Types · AiDotNet.Data.Loaders
Loads supervised learning data from CSV files into Matrix/Vector format.
Inheritance: DataLoaderBase<T> → InputOutputDataLoaderBase<T, Matrix<T>, Vector<T>> → CsvDataLoader<T>
For Beginners
This loader reads CSV (Comma-Separated Values) files and converts them into the format needed for training models. You specify which column contains the labels (the values to predict), and the rest become features (input data).
How It Works
Example:
Constructors
| Constructor | Summary |
|---|---|
CsvDataLoader(string filePath, bool hasHeader, int labelColumn, int batchSize) |
Creates a new CSV data loader. |
Properties
| Property | Summary |
|---|---|
int FeatureCount { get; } |
|
int OutputDimension { get; } |
|
int TotalCount { get; } |
|
string Description { get; } |
|
string Name { get; } |
Methods
| Method | Summary |
|---|---|
ValueTuple<IInputOutputDataLoader<T, Matrix<T>, Vector<T>>, IInputOutputDataLoader<T, Matrix<T>, Vector<T>>, IInputOutputDataLoader<T, Matrix<T>, Vector<T>>> Split(double trainRatio, double validationRatio, int? seed) |