Split
Module: strata.model_selection • Kind: struct • Traits: Movable
Source: strata/model_selection/kfold.mojo
struct Split(Movable)from strata.model_selection import SplitPair of train and validation sample indices for a cross-validation fold.
Constructors
Section titled “Constructors”def __init__( out self, var train_indices: List[Int], var val_indices: List[Int],)Methods Overview
Section titled “Methods Overview”| Method | Description |
|---|---|
Split.copy() |
Returns a deep copy of this split pair. |
Method Details
Section titled “Method Details”Split.copy()
Section titled “Split.copy()”def copy(self) -> SelfReturns a deep copy of this split pair.
Returns: Self