gkdziugaite / pacbayes-opt

Optimizing PAC-Bayes bounds for Stochastic Neural Networks with Gaussian weights
Apache License 2.0
26 stars 7 forks source link

Fix bound: remove a redundant term #1

Closed nzw0301 closed 5 years ago

nzw0301 commented 5 years ago

I found an unnecessary term to compute the PAC-Bayes bound in evaluate_SNN_accuracy function. I think that we don't need 2 * np.log(self.log_prior_std_precision) because it is already used in the calculation of 2 * tf.log(jopt).