Machine Learning

Machine LearningThe most difficult part for me was the code required to compute the partial derivatives.

Eventually using Octave I was able to vectorize the code and compress into a line.

Several years of Java programming experience didn’t prepare me for this type of code dealing with matrix transpositions and calculations.

Cost function I was asked to minimize is

J(\theta_0,\theta_1) = (\partial/\partial \theta_0 )1/m \sum_{i=1}^{m} ( h_\theta(x^{(i)}) - y^{(i)}) x^{(i)}

Plots showing the result of computing the gradient descent

3D Plot

3D

Contour Plot

Contour

I also learnt single and multi-variate Linear Regression which will help me with my Capacity Planning calculations.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s

%d bloggers like this: