fit_temperature
Calibrate classifier confidence by fitting temperature scaling to logits, returning the optimal temperature and before/after metrics; optionally save recalibrated predictions.
Instructions
Fit temperature scaling on a predictions file that contains logits.
Returns the optimal temperature and before/after metrics. Optionally saves the
recalibrated predictions to save_to (.npz).
Note: for a fair estimate, fit on a validation split and evaluate on a test split.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"path": "<path>"
},
"name": "fit_temperature"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | Yes | ||
| n_bins | No | ||
| save_to | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||