oracle / macest

Model Agnostic Confidence Estimator (MACEST) - A Python library for calibrating Machine Learning models' confidence scores
Universal Permissive License v1.0
100 stars 20 forks source link

Epistemic and aleatoric uncertainty sample code #7

Closed federicocau closed 2 years ago

federicocau commented 2 years ago

Hi all,

I was trying the example codes, but I'm struggling to find the piece where epistemic and aleatoric uncertainty are outputted somehow from the Macest model. I tried the method 'macest_model.predict_confidence_of_point_prediction(X_test)' but it just returns the class probability of the predicted class.

Can you provide some code examples on how to extract epistemic and aleatoric uncertainty?

Thanks

Edit:

Ok, I solved it :D 👍