• Stars
    star
    287
  • Rank 144,232 (Top 3 %)
  • Language
    Python
  • License
    The Unlicense
  • Created over 8 years ago
  • Updated over 6 years ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

All the hipster things in Neural Net in a single repo

hipsternet

All the hipster things in Neural Net in a single repo: hipster optimization algorithms, hispter regularizations, everything!

Note, things will be added over time, so not all the hipsterest things will be here immediately. Also don't use this for your production code: use this to study and learn new things in the realm of Neural Net, Deep Net, Deep Learning, whatever.

What's in it?

Network Architectures

  1. Convolutional Net
  2. Feed Forward Net
  3. Recurrent Net
  4. LSTM Net
  5. GRU Net

Optimization algorithms

  1. SGD
  2. Momentum SGD
  3. Nesterov Momentum
  4. Adagrad
  5. RMSprop
  6. Adam

Loss functions

  1. Cross Entropy
  2. Hinge Loss
  3. Squared Loss
  4. L1 Regression
  5. L2 Regression

Regularization

  1. Dropout
  2. Your usual L1 and L2 regularization

Nonlinearities

  1. ReLU
  2. leaky ReLU
  3. sigmoid
  4. tanh

Hipster techniques

  1. BatchNorm
  2. Xavier weight initialization

Pooling

  1. Max pooling
  2. Average pooling

How to run this?

  1. Install miniconda http://conda.pydata.org/miniconda.html
  2. Do conda env create
  3. Enter the env source activate hipsternet
  4. [Optional] To install Tensorflow: chmod +x tensorflow.sh; ./tensorflow.sh
  5. Do things with the code if you want to
  6. To run the example:
  7. python run_mnist.py {ff|cnn}; cnn for convnet model, ff for the feed forward model
  8. python run_rnn.py {rnn|lstm|gru}; rnn for vanilla RNN model, lstm for LSTM net model, gru for GRU net model
  9. Just close the terminal if you done (or source deactivate, not a fan though)

What can I do with this?

Do anything you want. I licensed this with Unlicense License http://unlicense.org, as I need to take a break of using WTFPL license.

More Repositories

1

generative-models

Collection of generative models, e.g. GAN, VAE in Pytorch and Tensorflow.
Python
7,304
star
2

MCMC

Collection of Monte Carlo (MC) and Markov Chain Monte Carlo (MCMC) algorithms applied on simple examples.
Python
356
star
3

controlled-text-generation

Reproducing Hu, et. al., ICML 2017's "Toward Controlled Generation of Text"
Python
241
star
4

probabilistic-models

Collection of probabilistic models and inference algorithms
Python
241
star
5

natural-gradients

Collection of algorithms for approximating Fisher Information Matrix for Natural Gradient (and second order method in general)
Python
135
star
6

last_layer_laplace

Last-layer Laplace approximation code examples
Jupyter Notebook
78
star
7

cnn-levelset

Source code for Kristiadi and Pranowo, 2017's "Deep Convolutional Level Set Method for Image Segmentation"
Python
59
star
8

pub-ready-plots

Agustinus' very opiniated publication-ready plotting library
Python
50
star
9

wiseodd.github.io

Agustinusβ€˜ personal website and blog
MDX
39
star
10

lula

Companion code for the paper "Learnable Uncertainty under Laplace Approximations" (UAI 2021).
Python
18
star
11

compound-density-networks

Implementation of: Kristiadi, Agustinus, and Asja Fischer. "Predictive Uncertainty Quantification with Compound Density Networks." (2019).
Python
15
star
12

lapeft-bayesopt

Discrete Bayesian optimization with LLMs, PEFT finetuning methods, and the Laplace approximation.
Python
14
star
13

cuda-pso

Comparison between CUDA and CPU for PSO using 3-dimensional Levy function as test case
C++
13
star
14

bayesian_ood_training

Jupyter Notebook
9
star
15

swarm-image-segmenter

Image segmentation using swarm intelligence, accelerated using GPGPU (CUDA)
C++
7
star
16

laplace-bayesopt

Laplace approximated BNN surrogate for BoTorch
Python
7
star
17

phd_thesis_template

TeX
4
star
18

rgpr

Companion code for the paper "An Infinite-Feature Extension for Bayesian ReLU Nets That Fixes Their Asymptotic Overconfidence" (NeurIPS 2021)
Python
4
star
19

two-funds-rebalancer

Given your current portfolio value, desired allocation after rebalancing, and the amount of cash you have, this script will output how much of your cash should be used to buy stock/bonds (in percent). Only works for portfolios with two funds, e.g. the Couch Potato and classic two-funds 60-40 portfolios.
Python
2
star
20

llm-bayesopt-exps

Official experiment code for the "Sober Look at LLMs for Material Discovery" paper.
Python
1
star
21

bo-async-feedback

Python
1
star