/MachineLearning

Some of experiences in Machine Learning field

Primary LanguageJupyter NotebookGNU General Public License v2.0GPL-2.0

Some Machine Learning Experiences

Bayesian Optimization with Gaussian Processes

BO in Python

You will see an example of optimizing a simple Neural Network's Hyperparameters with Bayesian Optimization

Using Expected Improvement acquisition function: alt tag

Gaussian Process Regression and Classification

GPR in Python or in matlab

GPC in Python or in matlab

Regression with Gaussian Processes

We have noisy sensor readings (indicated by errorbars). first we will do a point prediction:

alt tag

Next we will predict 100 points

alt tag

And we finally use MAP estimate of the hyperparameters:

alt tag

Classification with Gaussian Processes

We have generated training points and labels and then tried to compute labels for test points. Each + is one trainig point and * is a test point:

alt tag

If the color of '*' and 'o' coincide then that point is correctly classified. The points without any circle around them are training points ('+').

Linear Regression (LR) and Classification (LC)

LR in high-dimensional feature space

matlab code

alt tag

Here have projected input to a hd feature space with the help of basis functions and followed the rest of the standard linear model for regression. We see effect of different choices for basis function hyperparameters.

LC with Linear and Quadratic Decision Boundaries

matlab code

alt tag

alt tag

Sampling Techinques

Sampling from a cauchy distribution

matlab code

alt tag

Principle Component Analysis

Basics of PCA

matlab code

alt tag

in the folder you can also find code for PCA with isotropic noise.