artefactual.calibration#

Calibration module for artefactual library.

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).

Modules

rates_answers

train_calibration(input_file, output_file)

Train a logistic regression model to calibrate uncertainty scores.