Skip to content

Obtaining accurate uncertainty scores at inference/production #180

Answered by Dref360
vahuja4 asked this question in Q&A
Discussion options

You must be logged in to vote

Hello!

Yes it is often the case that we want to do uncertainty estimation at test time.

If you patch your Resnet with MCDropConnect, the model will be stochastic and you can do multiple forward pass per input. Then you can do the following:

  1. Take the mean prediction, this is Bayesian Model Averaging
  2. Compute BALD on the predictions, this will give you the epistemic uncertainty ie. the model's uncertainty.

This link should help you set everything up, if something is missing, let us know and we can improve the documentation.

https://baal.readthedocs.io/en/latest/faq.html#how-to-predict-uncertainty-per-sample-in-a-dataset

Replies: 1 comment 4 replies

Comment options

You must be logged in to vote
4 replies
@vahuja4
Comment options

@Dref360
Comment options

@vahuja4
Comment options

@Dref360
Comment options

Answer selected by vahuja4
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants