Fit cross fitted isotonic recalibrator
Repair monotone probability calibration with pool-adjacent-violators while using cross-fitting and a paired bootstrap to prove out-of-sample Brier improvement.
What it's for
Closes the probability-quality loop after a calibration audit or e-process alarm by producing a validated deployable correction map.
What you give it
Inputs split into evidence read from your connected systems, calibration your team owns, and numerical controls that affect precision but never the result's meaning.
| Field | Type | Role | Required |
|---|---|---|---|
| bootstrap_draws | integer ≥ 200, ≤ 20000 | Numerical control | Optional |
| calibration_rows | array of objects (3 fields) | Evidence | Yes |
| confidence_level | number ≥ 0.8, ≤ 0.999 | Your calibration | Optional |
| folds | integer ≥ 2, ≤ 10 | Your calibration | Optional |
| minimum_brier_improvement | number ≥ 0 | Your calibration | Optional |
| probabilities_to_recalibrate | array of objects (2 fields) | Evidence | Optional |
| seed | integer | Numerical control | Optional |
Each calibration_rows
record
| Field | Type | Required |
|---|---|---|
| id | string (non-empty) | Yes |
| outcome | one of "0", "1" | Yes |
| predicted_probability | number (≥ 0, ≤ 1) | Yes |
{
"bootstrap_draws": 200,
"calibration_rows": [
{
"id": "forecast-0",
"outcome": 1,
"predicted_probability": 0.2
},
{
"id": "forecast-1",
"outcome": 0,
"predicted_probability": 0.2
},
{
"id": "forecast-2",
"outcome": 0,
"predicted_probability": 0.2
},
{
"id": "forecast-3",
"outcome": 0,
"predicted_probability": 0.2
},
{
"id": "forecast-4",
"outcome": 1,
"predicted_probability": 0.2
},
{
"id": "forecast-5",
"outcome": 0,
"predicted_probability": 0.2
},
{
"id": "forecast-6",
"outcome": 0,
"predicted_probability": 0.2
},
{
"id": "forecast-7",
"outcome": 0,
"predicted_probability": 0.2
},
{ Truncated for display — the full payload is 512 lines.
What you get back
This is the actual output of running the example above — computed by the same function the platform calls, not an illustration.
{
"assumptions": [
"Calibration rows are resolved, representative, and use immutable probabilities recorded before outcomes.",
"The calibration relationship is monotone: higher original scores should not imply lower event frequency.",
"The deployment gate uses out-of-fold predictions; the final map is refit on all calibration rows only after validation.",
"Recalibration repairs probability reliability, not ranking discrimination, missing predictors, or causal validity."
],
"calibration_map": [
{
"calibration_rows": 50,
"input_probability_high": 0.2,
"input_probability_low": 0.2,
"recalibrated_probability": 0.26
},
{
"calibration_rows": 50,
"input_probability_high": 0.7,
"input_probability_low": 0.7,
"recalibrated_probability": 0.76
}
],
"cross_fitted_validation": {
"brier_after": 0.2007,
"brier_before": 0.191,
"brier_improvement": -0.0097,
"brier_improvement_interval": {
"high": 0.0018,
"low": -0.0221
},
"ece_after": 0.113,
"ece_before": 0.06,
"log_loss_after": 0.5989,
"log_loss_before": 0.5718
},
"decision": "retain_original_probabilities",
"method": "cross_fitted_pav_isotonic_recalibration_v1",
"recalibrated_probabilities": [
{
"id": "new-risk",
"original_probability": 0.2,
"recalibrated_probability": 0.26
}
],
"sample": { Truncated for display — the full payload is 49 lines.
How it works
Statistical audit & measurement — Check whether a number is fit to decide on: coverage, timing, reconciliation, and the gaps a dashboard hides.
- 1 Repair monotone probability calibration with pool-adjacent-violators while using cross-fitting and a paired bootstrap to prove out-of-sample Brier improvement.
- 2 Evaluate the method-specific diagnostics and gates returned by the function, then abstain unless the declared decision clears them under locally governed thresholds.
Before you trust it
Every tool in the catalog ships with the conditions under which its answer is meaningful — and the conditions under which it should abstain instead of guessing.
Assumptions & guardrails
- Metric definitions, weights, aggregate grain, sampling, missingness, dependence, and comparison windows correspond to the management claim being audited.
- Association, instability, or measurement quality is not a causal effect and must not be converted directly into an individual employment decision.
Minimum evidence
- calibration_rows: required and organization-defined
How to validate it
Use chronological train/calibration/test windows, compare proper scores and decision value with a simple baseline, and recalibrate only from outcomes resolved after prediction time.
Calibrating it to your org
Same for everyone
The mathematical kernel, validation rules, method version, and JSON output semantics are organization-independent; no tenant-trained coefficients or company benchmark is embedded in the function.
Specific to you
- metric/outcome definitions, entity grain, observation window, costs, thresholds, priors, and constraints represented by the function inputs
Calibration workflow
- 1 Define the management decision, target outcome, aggregate unit, privacy boundary, cadence, and prediction/intervention horizon for this organization.
- 2 Build a tenant-scoped historical cohort using only information available before each prediction or decision; preserve zero periods, censoring, assignment probabilities, and unresolved outcomes when the method requires them.
- 3 Estimate statistical parameters on training history, but obtain costs, utilities, risk tolerance, practical-effect thresholds, capacity, and policy constraints from accountable decision owners.
- 4 Validate on later time windows or held-out aggregate units at the deployment grain, against a simple baseline and the function-specific validation strategy.
- 5 Deploy only if the returned decision clears evidence, overlap, calibration, robustness, and guardrail checks; warning, unsupported, schema-gap, and fallback decisions are abstentions.
- 6 Monitor realized outcomes, data drift, coverage, and decision regret; recalibrate at a governed cadence or after a detected regime/definition change, never merely because a stakeholder dislikes the result.
Call it from your AI
You don't wire up 388 tools in your MCP client. The GitRevio MCP server exposes 18 tools, three of which let an agent search the catalog, read a tool's schema, and run it — so the assistant finds this one on its own.
gitrevio_capabilities_search
{ "q": "repair monotone probability calibration with pooladjacentviolators" }
→ finds "fit_cross_fitted_isotonic_recalibrator"
gitrevio_capability_describe
{ "capability_id": "fit_cross_fitted_isotonic_recalibrator" }
→ returns the input schema and agent guidance shown on this page
gitrevio_capability_run
{ "capability_id": "fit_cross_fitted_isotonic_recalibrator", "arguments": { ... } }
→ returns the result shown above Works in Claude Desktop, Claude Code, Cursor, Cline, Continue.dev, Goose and Aider. See the MCP server.
Related tools
Analyze deep uncertainty minimax regret
Apply Savage minimax regret when scenario probabilities are not defensible, compare maximin and equal-weight choices, and use PRIM-style iterative peeling to discover compact context boxes where the robust choice remains vulnerable.
Audit aggregate metric reversal
Detect Simpson's-paradox-style sign reversals between an executive aggregate relationship and its weighted within-stratum fixed-effect relationship, with whole-stratum bootstrap uncertainty and practical-magnitude gates.
Audit informative metric missingness
Audit whether aggregate metric availability is associated with a governed outcome using permutation inference, bootstrap intervals, practical effect gates, and false-discovery control.
Audit joint metric dependency drift
Detect changes in cross-metric dependence with empirical-copula ranks, random-feature permutation inference, sliced Wasserstein magnitude, and FDR-controlled pair diagnostics.
Audit multivariate metric drift
Detect material distribution shifts with reference-fixed quantile bins, PSI, Jensen-Shannon divergence, standardized Wasserstein distance, permutation tests, and FDR control.
Audit point in time model integrity
Gate an analytical or AI model on point-in-time correctness by auditing actual feature availability, snapshot creation, target-window ordering, outcome resolution, source-record reuse, and embargoed train/calibration/test boundaries, with row and feature diagnostics rather than a generic leakage warning.