DatasetSplit
Module: strata.core • Kind: struct • Traits: Movable
Source: strata/core/dataset.mojo
struct DatasetSplit[feat_dtype: DType = DType.float64, target_dtype: DType = DType.float64](Movable)from strata.core import DatasetSplitContainer holding train and test partitions of a Dataset.
Constructors
Section titled “Constructors”def __init__( out self, var train: Dataset[Self.feat_dtype, Self.target_dtype], var test: Dataset[Self.feat_dtype, Self.target_dtype],)Initialize a DatasetSplit container.
| Argument | Type | Description |
|---|---|---|
train |
— | Training partition Dataset. |
test |
— | Testing partition Dataset. |