CompileML
Get StartedConceptsUser GuideAPI ReferenceExamplesPyPIGitHub

API Reference

OverviewArtifact JSON schema

compileml

Module overviewcompile_selecteddecideload_artifactverify_artifact

compileml.datasets

Module overviewload_credit_defaultmake_credit_data

compileml.select

Module overviewcompile_selectedSelectionResultmake_partitionsdefault_gridchoose

compileml.batch

Module overviewscore_batch

compileml.compile

Module overviewExtractedModelextract_treesmax_depthnormalize_constraintsquantization_error_boundquantize_modelrhascore_floatscorecard_monotone_reporttrain_whiteboxvalidate_extractionverify_monotone_constraints

compileml.artifact

Module overviewbuild_artifactfit_isotonic_tablerecalibrate_artifactsave_artifact

compileml.bands

Module overviewBandSpecband_efficiencygovernance_bandsmonotone_quantile_bandsquantile_bandssemantic_bands

compileml.reference

Module overviewReferenceModelfit_referencereference_gini

compileml.runtime

Module overviewdecideload_artifactverify_artifactArtifactError

compileml.runtime — primitives

Module overviewscore_microlatent_from_rawband_indexband_labelcalibrate_ppmcontributions_half_microdisplay_impactsformat_reasonscanonical_hashvalidate_structure

compileml.scorecard

Module overviewbuild_scorecardscore_from_scorecardscorecard_to_csvscorecard_to_markdown

compileml.tune

Module overviewretention_by_segmentsweep_bandssweep_whitebox

compileml.validate

Module overviewvalidate_artifact

compileml.fairness

Module overviewFairnessAuditapproval_ratesattribution_concentrationattribution_disparityboundary_fragilitycalibration_by_groupcounterfactualerror_ratesfeature_swingmodel_interaction_structurereason_parityrepresentationscore_distributionwilson_interval

compileml.monitor

Module overviewdrift_decompositionband_driftbaseline_staleness

compileml.export

Module overviewExportErrorexport_cobolexport_sql

compileml.viz

Module overviewband_conditioned_decision_driversband_driversband_ladderdecision_driverswaterfallwaterfall_svg

API Reference

compileml.scorecard

Collapse a depth ≤ 2 artifact into bin → points tables that re-derive any decision bit-for-bit.

import compileml.scorecard

build_scorecard()Collapse a depth ≤ 2 artifact into an exact points scorecard.score_from_scorecard()Re-derive ``raw_micro`` from the scorecard alone — the audit re-sum.scorecard_to_csv()Flat CSV: one row per bin / grid cell, exact micro points.scorecard_to_markdown()Render the scorecard as markdown tables.
Previousvalidate_structureNextbuild_scorecard

CompileML · Apache-2.0 · Copyright 2026 Carlos Ortiz

Artifact SpecCLIFAQContributingAboutDiscussionsGitHubPyPI