artefactual.calibration.train_calibration#

artefactual.calibration.train_calibration(input_file, output_file)[source]#

Train a logistic regression model to calibrate uncertainty scores.

Return type:

None

Args:

input_file: Path to the CSV file containing ‘uncertainty_score’ and ‘judgment’. output_file: Path to save the calibration weights (JSON).