tcai_calibrate
Calibrate the halting threshold by measuring ΔF scale over warm-up cycles and setting epsFreeEnergy to factor times the median |ΔF|, ensuring a data-driven threshold instead of a guessed constant.
Instructions
Calibrate the halting threshold on the measured ΔF scale instead of a guessed constant. Runs cycles warm-up cycles at the given reward, records the free-energy increments |ΔF|, and sets epsFreeEnergy to factor× their median. Returns the measured ΔF scale and the applied threshold. Addresses the v2.9 critique that the default 0.02 nats was uncalibrated.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| cycles | No | Warm-up cycles to measure ΔF (default 25) | |
| factor | No | epsFreeEnergy = factor × median|ΔF| (default 0.5) | |
| reward | No | Reward signal during warm-up (default 0.8) |