dataloader

package
v0.1.4 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 4, 2026 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func FromCSV

func FromCSV(filePath string, config dataset.CSVConfig) (dataset.Dataset, error)

FromCSV loads a Dataset from a CSV file using the provided CSVConfig.

Supported modes:

  1. Regression / pre-encoded targets: Set InputColumns and TargetColumns to the relevant column indices. Both must contain numeric values.

  2. Classification with a label column (string or integer class names): Set InputColumns, HasLabelColumn = true, and LabelColumn to the column index. The labels are one-hot encoded into the output vector. Set NumClasses if known; leave it 0 to auto-detect from the data.

Modes can be combined: TargetColumns and LabelColumn can both be active at the same time — numeric targets are written first, then the one-hot vector is appended.

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL