DatasetSplit
classin packageklyn.math.datasets
public class DatasetSplit<Features extends AbstractNumber, Labels extends AbstractNumber>
DatasetSplit

A supervised dataset partition with statically typed features and labels. Arrays are retained, not copied. Axis zero identifies samples in both arrays.

Example

split = DatasetSplit<Float, Int>(images, labels)

Properties
Modifier and Type Member Description
public readonly property size
size as ULong
Number of samples.
public readonly property x
x as NDArray<Features>
Feature tensor, shared with the caller.
public readonl y
y property y as NDArray<Labels>
Target tensor, shared with the caller.
Constructors
Modifier and Type Member Description
public DatasetSplit
DatasetSplit(x as NDArray<Features>, y as NDArray<Labels>)
Retains arrays whose leading dimensions agree.