Bayesian-Neural-Networks
Bayesian-Neural-Networks copied to clipboard
Pytorch implementations of Bayes By Backprop, MC Dropout, SGLD, the Local Reparametrization Trick, KF-Laplace, SG-HMC and more
Firstly, thank you for all these great notebooks, they've been very helpful in building a better understanding of these methods. I am wondering where the function `log_gaussian_loss` originates from? I'm...
def softmax_CE_preact_hessian(last_layer_acts): side = last_layer_acts.shape[1] I = torch.eye(side).type(torch.ByteTensor) # for i != j H = -ai * aj -- Note that these are activations not pre-activations Hl = - last_layer_acts.unsqueeze(1)...
Thank you for the code. How can i run in cpu? the code only support CUDA? Regards
Hi JavierAntoran, Thanks for the wonderful code first, and it is really helpful for me working in the related area. I'd like to consult a question about the MC dropout....
Minor bug. Instead of: data = pd.read_csv('housing.data', header=0, delimiter="\s+").values Use: data = pd.read_csv('housing.data', header=None, delimiter="\s+").values
Hi @JavierAntoran @stratisMarkou, First of all, thanks for making all of this code available - it's been great to look through! Im currently spending some time trying to work through...
Here are two questions, and would you please help me with them: 1. In the COLAB notebook, this code didn't train in batches, right? 2. In the COLAB notebook, the...