Closed leihuayi closed 1 year ago
In the readme and API reference docs:
from netcal.metrics import ECE n_bins = 10 ece = ECE(n_bins) uncalibrated_score = ece.measure(confidences) calibrated_score = ece.measure(calibrated)
This triggers:
--------------------------------------------------------------------------- TypeError Traceback (most recent call last) <ipython-input-39-ea3fcf5ef398> in <module> 4 5 ece = ECE(n_bins) ----> 6 uncalibrated_score = ece.measure(confidences) 7 calibrated_score = ece.measure(calibrated) 8 print('uncalibrated_score', uncalibrated_score) TypeError: measure() missing 1 required positional argument: 'y'
The correct documentation is:
from netcal.metrics import ECE n_bins = 10 ece = ECE(n_bins) uncalibrated_score = ece.measure(confidences, ground_truth) calibrated_score = ece.measure(calibrated, ground_truth)
Hi, thank you very much for your comment! I definetly missed this point ... will be fixed within the next release.
Already resolved
In the readme and API reference docs:
This triggers:
The correct documentation is: