Data and machine learning#
These APIs preserve event-time and label-availability boundaries when building historical datasets, replaying runs, backtesting, or evaluating predictions.
Point-in-time datasets#
|
Stable rows and the manifest that describes their construction. |
|
Build historical features and labels using only available source data. |
|
Convenience API for deterministic in-memory M9 construction. |
|
Write the fixed-schema M9 Parquet table and its JSON manifest. |
|
Load one existing generated run without regenerating unrelated records. |
Backtesting and prediction evaluation#
|
Fold rows, metrics, and the immutable result manifest. |
|
Build reproducible rolling folds from one existing generated history. |
|
Run selected M19 model adapters over the existing M10 temporal folds. |
|
Persist fold rows, metrics, and the append-only backtest manifest. |
|
One external prediction at a point in time. |
|
EvaluationResult(predictions: tuple[dict[str, typing.Any], ...], metrics: tuple[dict[str, typing.Any], ...], manifest: dict[str, typing.Any], model_artifacts: dict[str, bytes] | None = None) |
|
Evaluate external scores against a leakage-safe dataset. |
|
Train configured deterministic baselines on train rows only. |
Drift analysis#
Compare two point-in-time windows with deterministic PSI, Wasserstein, and Jensen–Shannon metrics. The report records window fingerprints and the label policy so an alert can be reproduced later.
|
Immutable policy controlling a drift comparison. |
|
One measured drift value and its decision threshold. |
|
Reproducible comparison of two row windows. |
|
Compare two row windows using deterministic distribution metrics. |
|
Compare matching evaluation metrics under one threshold policy. |