API Reference

This page documents the complete API for stable-cart. All tree estimators follow the scikit-learn API and support both regression and classification through a unified task parameter.

Tree Estimators

LessGreedyHybridTree

LessGreedyHybridTree with unified stability primitives.

BootstrapVariancePenalizedTree

Bootstrap variance penalized tree with unified stability primitives.

RobustPrefixHonestTree

Robust prefix honest tree with unified stability primitives.

Evaluation Functions

prediction_stability

Measure how consistent model predictions are across models on the SAME OOS data.

evaluate_models

Evaluate predictive performance of multiple models using standard metrics.

Base Classes and Advanced APIs

BaseStableTree

Unified base class implementing all 7 stability primitives.

SplitCandidate

Represents a potential split with all relevant information.

StabilityMetrics

Container for stability diagnostic information.

SplitStrategy

Abstract base class for split finding strategies.

create_split_strategy

Factory function to create split strategies by name.