bioinf-jku/SNNs has 1,589 GitHub stars and 196 forks. GitHot measured -1 stars in 24 hours and -2 in 7 days. Last checked 2026-11-11 17:53 UTC. Last push 2026-05-12.
Tutorials and implementations for "Self-normalizing networks"
Measured star growth
- in 24h
- -1
- in 7 days
- -2
- in 15 days
- Collecting history
- in 1 month
- Collecting history
Net star changes over overlapping periods, not daily totals. Missing measurements are left blank. Stars measure attention, not software quality.
README.md
OriginalSelf-Normalizing Networks
Tutorials and implementations for Self-Normalizing Networks (SNNs) as suggested by Klambauer et al. (arXiv pre-print).
The repository contains TensorFlow/Keras scripts and PyTorch notebooks for demonstrating the main SNN recipe:
- SELU activations
- LeCun normal initialization
- AlphaDropout when dropout is used
Environment
The current examples use TensorFlow 2.x/Keras and PyTorch. Create the Conda environment from the root environment file:
conda env create -f environment.yml
conda activate snn
The environment is intended for current TensorFlow and PyTorch versions. On
Linux/NVIDIA systems, TensorFlow GPU dependencies are installed via the
tensorflow[and-cuda] pip extra.
Implementation Notes
TensorFlow/Keras
Keras provides SELU, LeCun normal initialization, and AlphaDropout:
PyTorch
PyTorch provides SELU and AlphaDropout:
For SELU networks, initialize linear and convolutional layers with:
torch.nn.init.kaiming_normal_(weight, mode="fan_in", nonlinearity="linear")
This corresponds to LeCun normal initialization because fan_in is used with a
gain of 1.
Tutorials
TensorFlow 2.x / Keras
- Multilayer Perceptron on MNIST (python script)
- Convolutional Neural Network on MNIST (python script)
- Convolutional Neural Network on CIFAR10 (python script)
PyTorch
- Multilayer Perceptron on MNIST (notebook)
- Convolutional Neural Network on MNIST (notebook)
- Convolutional Neural Network on CIFAR10 (notebook)
Further Material
Figure 1
Notebooks and code to produce Figure 1 are provided in figure1. This material builds on top of the biutils package.
Calculations and Numeric Checks
Mathematica notebooks for calculations and numeric checks of the theorems are provided here:
UCI, Tox21, and HTRU2 Data Sets
Explore related projects
sindresorhus/awesome
😎 Awesome lists about all kinds of interesting topics [NOTE: Pull requests are temporarily disabled until I have a chance to catch up with the existing ones]
535,319 starsEbookFoundation/free-programming-books
:books: Freely available programming books
401,421 starsnilbuild/developer-roadmap
Interactive roadmaps, guides and other educational content to help developers grow in their careers.
371,830 starsvinta/awesome-python
The definitive list that answers "I want to do X in Python, which tool should I use?"
334,091 stars