API Reference#
This section provides detailed documentation for every public class and function in nestkit. Use the table below to jump to a specific component, or browse the sub-pages organised by topic.
Core estimators#
Nested cross-validation for classification tasks. |
|
Nested cross-validation for regression tasks. |
Result containers#
Aggregated nested CV results for classification. |
|
Aggregated nested CV results for regression. |
|
Result of a single outer fold evaluation (classification). |
|
Result of a single outer fold evaluation (regression). |
Calibration#
Unified interface for post-hoc probability calibration. |
|
Assess calibration quality before and after post-hoc calibration. |
Thresholding#
Threshold optimization results for a single outer fold. |
Conformal prediction#
Class-conditional (Mondrian) conformal prediction sets. |
|
Mondrian conformal prediction intervals conditioned on predicted value. |
|
Per-class quantile thresholds from CV+ Mondrian conformal calibration. |
|
Per-bin residual quantiles from Mondrian regression conformal calibration. |
Model comparison#
Statistically rigorous comparison of nested cross-validation results. |
Diagnostics#
Assess hyperparameter selection consistency across outer folds. |
Feature importance#
Aggregate feature importances across nested CV outer folds. |
Inner CV#
Diagnostics for the inner CV hyperparameter search of a single outer fold. |
Callbacks#
Runtime-checkable protocol for nested CV fold callbacks. |
|
Display a tqdm progress bar during nested cross-validation. |
|
Pickle intermediate fold results to disk after each outer fold. |
|
Emit structured log messages at each nested CV lifecycle event. |