Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit a2ed96b

Browse files
committed
ver 0.8
1 parent 1a3761a commit a2ed96b

File tree

4 files changed

+264
-2
lines changed

4 files changed

+264
-2
lines changed

‎.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
build/*
2+
_*
23
_*/
34
dist/*
45
torchbnn.egg-info/*

‎README.md

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,10 @@ To help construct bayesian neural network intuitively, all codes are modified ba
2020
import torchbnn
2121
```
2222

23+
### Demos
24+
* **Bayesian Neural Network with Iris Data** ([code](https://github.com/Harry24k/bayesian-neural-network-pytorch/blob/master/demos/White%20Box%20Attack%20with%20Imagenet.ipynb)):
25+
To classify Iris data, in this demo, two-layer bayesian neural network is constructed and tested with plots. It shows how bayesian-neural-network works and randomness of the model.
26+
2327
## Thanks to
2428

2529
* @kumar-shridhar [github:PyTorch-BayesianCNN](https://github.com/kumar-shridhar/PyTorch-BayesianCNN)
@@ -58,7 +62,11 @@ import torchbnn
5862
* **modules** : For supporting **freeze** method, freeze, weight_eps and bias_eps is added to each modules. If freeze is False (Defalt), weight_eps and bias_eps will be initialized with normal noise at every forward. If freeze is True, weight_eps and bias_eps won't be changed.
5963

6064
### Version 0.7
65+
* **DO NOT USE**
66+
67+
### Version 0.8
6168
* **modules** : For supporting **freeze** method, weight_eps and bias_eps is changed to buffer with register_buffer method. Thorugh this change, it provides save and load even if bayesian neural network is freezed.
6269
* **BayesModule is added** : Bayesian version of torch.nn.Module. Not being used currently.
6370
* **utils/freeze_model.py** :
64-
* **freeze, unfreeze methods are modified** : Previous methods didn't work on single layer network.
71+
* **freeze, unfreeze methods are modified** : Previous methods didn't work on single layer network.
72+
* **Demos are uploaded** : "Bayesian Neural Network with Iris Data".

‎demos/Bayesian Neural Network with Iris Data.ipynb

Lines changed: 251 additions & 0 deletions
Large diffs are not rendered by default.

‎torchbnn/__init__.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,4 @@
11
from .modules import *
2-
from . import utils
2+
from . import utils
3+
4+
__version__ = 0.8

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /