ModelResult
Note
This page is a reference documentation. It only explains the class signature, and not how to use it. Please refer to the Habitat Guide and Python API guide (v2.0) for usage.
- class ModelResult(pipeline: TablePipeline, train_metrics: Mapping[str, float], manifest: RunManifest, test_metrics: Mapping[str, float] | None = None, train_row_ids: Tuple[str, ...] = (), test_row_ids: Tuple[str, ...] = ())[source]
Bases:
objectOutcome of
train_model(), entirely in memory.- pipeline
The fitted pipeline – the publishable artefact, persisted with
TablePipeline.save()when the caller wants a file. Under a hold-out split it is fitted on the TRAINING rows only, mirroring the v0.1*_final_pipeline.pklsemantics.
- train_metrics
Metric panel scored on the training rows. Named
train_so nobody mistakes an in-sample number for a generalisation estimate.
- manifest
Record of what ran: the effective spec payload, the provenance chain, and every row’s outcome.
- test_metrics
Metric panel scored on the held-out rows, or
Nonewhen the recipe ran without a hold-out split.