Latex code for my computer science master thesis, "A comparison of frequentist methods and Bayesian approximations in the implementation of Convolutional Neural Networks in an Active Learning setting".
Supervised by Alfredo Garbuno Iñigo.
Code can be found here.
And the final PDF file can be found here.
Must have latex and biber installed. Follow the following instructions:
-
Clone repository.
-
cd to
latexdirectory. -
Folder has a Makefile, so all you have to do is execute the command
make all
Go to https://v2.overleaf.com/read/dscncbsfvjvf and compile. This version may not reflect most recent changes because I have to manually pull changes from the repository and I don't do this with every single commit.
-
File
gradient_descent_example.Rimplements gradient descent for logistic regression in simulated data. Generates fileGD_plots.pdf. -
File
mini_batch_gradient_descent_example.Rimplements mini-batch gradient descent for logistic regression in simulated data. Usesmini_batch_gd_log_reg.cppfile to compile C++ code viaRcpppackage. Generates fileMini-batch_GD_plots.png. -
File
BBVI_logistic_regression.Rimplements gradient ascent for Mean-field Variational Approximation of posterior distribution of logistic regression in simulated data. Generates fileBBVI_plots.pdf. -
File
plot_ANN.Rcreates ANN diagrams. Generates filesplot_ANN_01.pdf,plot_ANN_02.pdfandplot_ANN_03.pdf. -
File
plot_KL_example.Rshows the difference between forward and reverse KL-divergence in a Gaussian mixture. Creates filesKL_example_1.pdf,KL_example_2.pdfandKL_example_3.pdf. -
File
logistic_regression_AL_example.Rimplements active learning in two logistic regression models with simulated data. Creates fileslog_reg_AL_decision_boundary_plot.pdfandlog_reg_AL_accuracies_plot.pdf.