/Intro-to-Machine-Learning

Implementation of ML algorithms using Numpy

Primary LanguageJupyter Notebook

The problems are taken from the Assignments given by Professor Zhang while teaching Introduction to Machine Learning at University of Illinois at Chicago.

The book which I used to study for this course is Introduction to Machine Learning, Third Edition by Ethem Alpaydin.

Linear Regression: We can see implementation of Linear Regression using numpy in this Lab. We can also see the effects of Learning Rate and Number of Iteration on the MSE. image

KNN: In this Lab we can see the implementation of KNN for Optical Character Recognition for the MNIST dataset.

Cross Validation: In this Lab we can see the implementation of K-fold Cross Validation. The below image shows the change in error rate with the change in number of folds(k value) image

Multivariate Methods: In the image shown below we can see the contours for probabilty density function depending on the covariance matrix. image

Naive Bayes Classification: In this Lab we can see the implementation of spam detection using Naive Bayes Classification. Here we are using smoothing to deal with words that we have not seen in the past.

Decision Tree: In this Lab we make use of Gini Index as the cost function to evaluate the splits while building the tree.

Logistic Regression: In this Lab we have implemented Logistic Regression for multiclass classification for load_digits dataset in sklearn.