API Reference
compileml.compile
Teacher model to integer model. Everything here runs at compile time and never ships to production.
import compileml.compile
class ExtractedModelFloat-precision tree ensemble extracted from a source model.extract_trees()Extract a fitted model into float tree arrays; dispatches on family.max_depth()Actual maximum tree depth, measured from the node arrays.normalize_constraints()Normalize to a list of -1/0/+1 per feature, or None if unconstrained.quantization_error_bound()Worst-case |float_latent − int_latent/micro_scale| (latent units).quantize_model()Quantize an extracted float model into the integer artifact model.rha()Round half away from zero (spec §2.1).score_float()Reference float scorer used for extraction validation only.scorecard_monotone_report()Aggregate (necessary-and-sufficient) check on a depth ≤ 2 scorecard.train_whitebox()Fit a whitebox GBM to a target.validate_extraction()Score random rows through both paths; raise if they disagree.verify_monotone_constraints()Check every quantized tree against the declared constraint signs.