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
latex
directory. -
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.R
implements gradient descent for logistic regression in simulated data. Generates fileGD_plots.pdf
. -
File
mini_batch_gradient_descent_example.R
implements mini-batch gradient descent for logistic regression in simulated data. Usesmini_batch_gd_log_reg.cpp
file to compile C++ code viaRcpp
package. Generates fileMini-batch_GD_plots.png
. -
File
BBVI_logistic_regression.R
implements gradient ascent for Mean-field Variational Approximation of posterior distribution of logistic regression in simulated data. Generates fileBBVI_plots.pdf
. -
File
plot_ANN.R
creates ANN diagrams. Generates filesplot_ANN_01.pdf
,plot_ANN_02.pdf
andplot_ANN_03.pdf
. -
File
plot_KL_example.R
shows the difference between forward and reverse KL-divergence in a Gaussian mixture. Creates filesKL_example_1.pdf
,KL_example_2.pdf
andKL_example_3.pdf
. -
File
logistic_regression_AL_example.R
implements active learning in two logistic regression models with simulated data. Creates fileslog_reg_AL_decision_boundary_plot.pdf
andlog_reg_AL_accuracies_plot.pdf
.