{
 "library": "bootstrap",
 "version": "0.11.0",
 "root": "a6a3d1ff0f982ee30430c5b42f3784c8ec901fd68482cfc1bc30899c1e5e48c5",
 "license": null,
 "slug": "ConfidenceCalibrate",
 "ref": "ConfidenceCalibrate#e357",
 "hash": "sema:ConfidenceCalibrate#mh:SHA-256:e3570290d420b5bf59848ccc1d269530bbb3124b2e1a4583e62dc2a901ab16ac",
 "stub": "e357",
 "layer": "Mind",
 "type": "Inference",
 "summary": "Aligning subjective confidence with objective frequency",
 "mechanism": "Track Record Alignment: For claims rated 70% confident, ~70% should be true. Track predictions vs outcomes. If 90% claims are right only 60% of time, you are overconfident—widen uncertainty. If 90% claims are right 99% of time, you are underconfident—tighten. It adjusts the internal probability model using BayesUpdate#8656 on historical accuracy data, ensuring BaseRateInclude#1e63 is respected.",
 "invariants": [
  "Calibrates against a recorded track record of predictions and their outcomes.",
  "Expected calibration error stays within `calibration_target`.",
  "The adjusted confidence-to-frequency mapping is monotonic non-decreasing."
 ],
 "parameters": [
  {
   "name": "bin_count",
   "type": "Integer",
   "range": "[5, 20]",
   "description": "Resolution of calibration measurement"
  },
  {
   "name": "calibration_target",
   "type": "Float",
   "range": "[0.02, 0.15]",
   "description": "Max expected calibration error, ECE"
  }
 ],
 "signature": [],
 "preconditions": [],
 "postconditions": [],
 "failure_modes": [
  "Over-correction: the Agent#e127 becomes under-confident to avoid being wrong, refusing to act on strong signals.",
  "Thin record: calibrating across `bin_count` bins on too few predictions fits noise, not bias."
 ],
 "domain": "",
 "caution": "",
 "sources": [],
 "name": "ConfidenceCalibrate",
 "builds_on": [
  {
   "alias": "base_rate_include",
   "relation": "references",
   "library": "bootstrap",
   "slug": "BaseRateInclude",
   "ref": "BaseRateInclude#1e63",
   "url": "https://semahash.org/vocabularies/bootstrap/patterns/BaseRateInclude"
  },
  {
   "alias": "bayes_update",
   "relation": "references",
   "library": "bootstrap",
   "slug": "BayesUpdate",
   "ref": "BayesUpdate#8656",
   "url": "https://semahash.org/vocabularies/bootstrap/patterns/BayesUpdate"
  },
  {
   "alias": "agent",
   "relation": "references",
   "library": "bootstrap",
   "slug": "Agent",
   "ref": "Agent#e127",
   "url": "https://semahash.org/vocabularies/bootstrap/patterns/Agent"
  }
 ],
 "related": [
  {
   "alias": null,
   "relation": "related",
   "library": "bootstrap",
   "slug": "Certaintyclap",
   "ref": "Certaintyclap#5dcc",
   "url": "https://semahash.org/vocabularies/bootstrap/patterns/Certaintyclap"
  }
 ],
 "used_by": [
  {
   "slug": "Certaintyclap",
   "relation": "references",
   "url": "https://semahash.org/vocabularies/bootstrap/patterns/Certaintyclap"
  },
  {
   "slug": "UncertaintyMap",
   "relation": "references",
   "url": "https://semahash.org/vocabularies/bootstrap/patterns/UncertaintyMap"
  }
 ],
 "url": "https://semahash.org/vocabularies/bootstrap/patterns/ConfidenceCalibrate",
 "md_url": "https://semahash.org/vocabularies/bootstrap/patterns/ConfidenceCalibrate.md",
 "library_url": "https://semahash.org/vocabularies/bootstrap"
}
