프로젝트
GitHub에서 보기
Harry24k/bayesian-neural-network-pytorch
소개
베이지안 신경망의 PyTorch 구현 [torchbnn]
시스템 및 인프라측정된 스타 증가
- in 24h
- 0
- in 7 days
- -1
- in 15 days
- 0
- in 1 month
- 기록 수집 중
서로 겹치는 기간의 순증가량이며 일별 합계가 아닙니다. 측정값이 없으면 비워 둡니다. 스타는 관심도를 나타내며 품질을 보장하지 않습니다.
README.md
OriginalBayesian-Neural-Network-Pytorch
This is a lightweight repository of bayesian neural network for PyTorch.
Usage
:clipboard: Dependencies
- torch 1.2.0
- python 3.6
:hammer: Installation
pip install torchbnnorgit clone https://github.com/Harry24k/bayesian-neural-network-pytorch
import torchbnn
:rocket: Demos
- Bayesian Neural Network Regression (code): In this demo, two-layer bayesian neural network is constructed and trained on simple custom data. It shows how bayesian-neural-network works and randomness of the model.
- Bayesian Neural Network Classification (code): To classify Iris data, in this demo, two-layer bayesian neural network is constructed and trained on the Iris data. It shows how bayesian-neural-network works and randomness of the model.
- Convert to Bayesian Neural Network (code):
To convert a basic neural network to a bayesian neural network, this demo shows how
nonbayes_to_bayesandbayes_to_nonbayeswork. - Freeze Bayesian Neural Network (code):
To freeze a bayesian neural network, which means force a bayesian neural network to output same result for same input, this demo shows the effect of
freezeandunfreeze.
Citation
If you use this package, please cite the following BibTex (SemanticScholar, GoogleScholar):
@article{lee2022graddiv,
title={Graddiv: Adversarial robustness of randomized neural networks via gradient diversity regularization},
author={Lee, Sungyoon and Kim, Hoki and Lee, Jaewook},
journal={IEEE Transactions on Pattern Analysis and Machine Intelligence},
year={2022},
publisher={IEEE}
}
:mag_right: Update Records
Here is update records of this package.
Thanks to
- @kumar-shridhar github:PyTorch-BayesianCNN
- @xuanqing94 github:BayesianDefense
관련 프로젝트 살펴보기
불러오는 중…