Presentation is loading. Please wait.

Presentation is loading. Please wait.

Octave Tutorial Basic operations Machine Learning.

Similar presentations


Presentation on theme: "Octave Tutorial Basic operations Machine Learning."— Presentation transcript:

1 Octave Tutorial Basic operations Machine Learning

2 Octave Tutorial Moving data around Machine Learning

3 Octave Tutorial Computing on data Machine Learning

4 Octave Tutorial Plotting data Machine Learning

5 Control statements: for, while, if statements
Octave Tutorial Control statements: for, while, if statements Machine Learning

6 Vectorial implementation
Octave Tutorial Vectorial implementation Machine Learning

7 Vectorization example.
Unvectorized implementation Vectorized implementation prediction = 0.0; for j = 1:n+1, prediction = prediction + theta(j) * x(y) end; prediction = theta’ * x;

8 Vectorization example.
Unvectorized implementation Vectorized implementation double prediction = 0.0; for (int j = 0; j < n; j++) prediction += theta[j] * x[y]; double prediction = theta.transpose() * x;

9 Gradient descent (for all )

10 (for all )


Download ppt "Octave Tutorial Basic operations Machine Learning."

Similar presentations


Ads by Google