Embed presentation
Download to read offline







![Vectorization example.
Unvectorized implementation
double prediction = 0.0;
for (int j = 0; j < n; j++)
prediction += theta[j] * x[y];
Vectorized implementation
double prediction
= theta.transpose() * x;](https://image.slidesharecdn.com/copyoflecture5octave-200812164806/85/Machine-Learning-lecture5-octave-8-320.jpg)



This document is an Octave tutorial for machine learning that covers basic operations, moving data around, computing on data, plotting data, control statements like for, while and if loops, vectorial implementation, vectorization examples comparing unvectorized and vectorized code, and gradient descent. It provides instructions and examples for using Octave for machine learning tasks.







![Vectorization example.
Unvectorized implementation
double prediction = 0.0;
for (int j = 0; j < n; j++)
prediction += theta[j] * x[y];
Vectorized implementation
double prediction
= theta.transpose() * x;](https://image.slidesharecdn.com/copyoflecture5octave-200812164806/85/Machine-Learning-lecture5-octave-8-320.jpg)

