Skip to content

Repository for Machine Learning for Data Science 1 course homeworks, at FRI - University of Ljubljana

Notifications You must be signed in to change notification settings

lukau2357/mlds-1

Repository files navigation

Homework 1

Decision trees, Bootstrap aggregation and Random forests, feature importance with Breiman's algorithm.

Homework 2

Multinomial and ordinal logistic regression implementation (L-BFGS used for optimizing log-likelihood). MLR coefficient interpretation.

Hoemwork 3

Ridge regression (using the closed form solution with intercept) and Lasso regression (using the Powell method for optimization). Grid search for the best ridge regularization weight on a superconductor dataset.

Homework 4

Kernelized ridge regression and support vector regression implementation. Grid search and model evaluation on a real world dataset with RBF and Polynomial kernels.

Homework 5

Implementation of standard risk estimation techniques: validation set, train-test split, cross-validation. Demonstration and interpretation of risk estimation techniques on a toy DGP (implemented in R).

Homework 6

Implementation of deep neural networks and the backpropagation algorithm. Supported activations per layer are ReLU and sigmoid, but this can easily be extended. Verification of correctness of backpropagation is also present, computed partial derivatives are compared with numerical estimates. Comparison of deep neural networks and machine learning algorithms implemented in previous homeworks on the housing dataset. Hyperparameter optimization on a ~50k records dataset.

SVM Demo

Implementation of hard margin and soft margin SVM using CVXOPT library for quadratic programming. 2D demonstrations added for both algorithms.

PCA Demo

Principal component analysis implementation with numpy, and demonstration using the well-known Iris dataset.

About

Repository for Machine Learning for Data Science 1 course homeworks, at FRI - University of Ljubljana

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Languages