public class DatasetSplit<Features extends AbstractNumber, Labels extends AbstractNumber>
A supervised dataset partition with statically typed features and labels. Arrays are retained, not copied. Axis zero identifies samples in both arrays.
split = DatasetSplit<Float, Int>(images, labels)
| Modifier and Type | Member | Description |
|---|---|---|
| public readonly property | sizesize as ULong |
Number of samples. |
| public readonly property | xx as NDArray<Features> |
Feature tensor, shared with the caller. |
| public readonl | yy property y as NDArray<Labels> |
Target tensor, shared with the caller. |
| Modifier and Type | Member | Description |
|---|---|---|
| public | DatasetSplitDatasetSplit(x as NDArray<Features>, y as NDArray<Labels>) |
Retains arrays whose leading dimensions agree. |