EFS-OpenSource / calibration-framework

The net:cal calibration framework is a Python 3 library for measuring and mitigating miscalibration of uncertainty estimates, e.g., by a neural network.
https://efs-opensource.github.io/calibration-framework/
Apache License 2.0
344 stars 42 forks source link

mean_estimate flag in scaling calibration transform method does not work as intended #42

Closed 21xiangyi closed 3 months ago

21xiangyi commented 1 year ago

When the mean_estimate parameter is flagged as True, it returns the error expected np.ndarray (got Tensor). This only happens when method in the constructor is initialized as 'variational' or 'mcmc'. When method is initialized as 'mle', there are no problems yielding numpy array, i.e. inputs to the fit and transform are valid.

fabiankueppers commented 1 year ago

Hi, can you please give the full stack trace of the error? Thanks!

fabiankueppers commented 3 months ago

Closing this issue for now due to missing information. Please re-open if necessary.