Bayesian Neural Network Language Model
This is the script to build a toy Bayesian LSTM language model using PennTree Bank Dataset.
requirements.txt
python main.py --train --data=data/ptb --model lstm --save ./ptblstmBaseline --no-tied --cuda 0
python main.py --train --data=data/ptb --model lstm --gate-type bayes --position 0 --save ./ptblstmBayesP0scratch --no-tied --cuda 0
python main.py --train --data=data/ptb --model lstm --gate-type bayes --position 0 --save ./ptblstmBayesP0_Pre --no-tied --cuda 0 --pretrain_prior
python main.py --train --data=data/ptb --model lstm --gate-type bayes --position 0 --save ./ptblstmBayesP0_Pre_reset --no-tied --cuda 0 --pretrain_prior --reset_bayes