Skip to content

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 DatasetSplit

Container holding train and test partitions of a Dataset.


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.