Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

uncertainty quantification of a neural network #41

Closed
admodadmod opened this issue Aug 23, 2021 · 3 comments
Closed

uncertainty quantification of a neural network #41

admodadmod opened this issue Aug 23, 2021 · 3 comments

Comments

@admodadmod
Copy link

Hi,
I have a trained neural network. How can I used the Uncertainty Toolbox to quantify uncertainty of the neural network.
How should I calculate predictions_std (a vector of standard deviations)?

@IanChar
Copy link
Member

IanChar commented Aug 26, 2021

Hi, thanks for your interest in the toolbox! A general trained neural network on its own may not have a notion of uncertainty to quantify. Are you training the network for doing classification or regression? As of now our library only supports regression.

If you are doing regression, one easy way to incorporate uncertainty for your neural network is to train it to predict a normal distribution, rather than a single point. Then, your network will predict the mean and standard deviation, which you can directly plug into the uncertainty toolbox. We have an example of this here: https://github.com/uncertainty-toolbox/simple-uq

@sujanme25
Copy link

Hi,
I am stuck in recalibration, I got the mean and SD prediction from DNN and got the average caliibration using this toolbox, Now what i have to do to perform the recalibration. Do i need to set aside validation data to further recalibrate?

@IanChar
Copy link
Member

IanChar commented Nov 14, 2021

Hello you do need to set aside another validation set in order to recalibrate. I would look at the toolbox tutorial if you haven't already. The end of the tutorial has an example of recalibration for this case.

@IanChar IanChar closed this as completed Nov 3, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants