Coding Tricks

Machine Learning and Coding Tricks

Theano demo with Docker help




What is Theano ?

From the Theano website:

Theano is a Python library that allows you to define, optimize, and evaluate mathematical expressions involving multi-dimensional arrays efficiently.

This is a demo of the library Theano commonly used …

Gradient Descent Optimization


In many machine learning algorithm, the goal is to find a function or parameters that allows us to approximate or modelize unknown observable data. Those data could come from device measurement, web crawling, empirical observations etc. Generally speaking we have …


For a first article, we'll see an implementation in Matlab of the so-called k-means clustering algorithm. K-means algorithm is a very simple and intuitive unsupervised learning algorithm. Indeed, with supervised algorithms, the input samples under which the training is performed …

2-D logistic regression

logistic regression thumbWe have previously presented a proposed implementation for the k-means algorithm on computed samples. We saw that the result performed quite well clustering our samples. The next step now is to evaluate the probablility that a new sample belongs to …