Skip to main content

Module split

Module split 

Source
Expand description

Split strategies for discovery / estimation.

SPDX-License-Identifier: MIT OR Apache-2.0

Structs§

BlockedTemporalSplit
Blocked temporal split: contiguous time blocks assigned to train / test.
ClusterSplit
Cluster split: same mechanics as grouped, distinct type for cluster ids.
DiscoveryEstimationSplit
Discovery / estimation split with a temporal gap.
EnvHoldoutSplit
Environment holdout: discovery vs estimation environment index sets (no data copy).
GroupedSplit
Grouped split: entire groups assigned to train or test (no leakage).
OrderedFrac
Newtype so f64 fraction can live on an Eq struct via bit pattern.
RandomIidSplit
Random IID train/test split (seeded; metadata only).
RegimeHoldoutSplit
Regime holdout: discovery vs estimation regime id sets (no data copy).
RollingOriginSplit
Rolling-origin (expanding window) temporal folds.
RowSplit
Train / test row-index partition (metadata only — no data copy).
TemporalFold
One rolling-origin fold.
TimeRange
Half-open index range [start, end).

Enums§

TemporalRandomPolicy
Whether random row splits are allowed on temporal / panel / event data.

Functions§

ensure_random_allowed_on_temporal
Guard used by planners before applying RandomIidSplit to temporal data.