
Machine Learning
吸血鬼猎人
这个作者很懒,什么都没留下…
展开
-
Octave (1.Basic Operation)
Just study machine learning on Coursera, so we could do some exercise. Download Octave from OctaveInstall the OctaveUse Octave to do some simple calculation Simple calculation:1 + 2...原创 2018-06-06 14:44:53 · 151 阅读 · 0 评论 -
Octave (2.Moving Data Around)
We could type A = [1 2; 3 4; 5 6] and size(A), then Octave returns "ans = 3 2".In fact, size(A) returns a 1*2 matrix. >> size(A,1)ans = 3 % row of matrix A >> v = [1 2 3 4]...原创 2018-06-06 15:33:16 · 157 阅读 · 0 评论 -
Octave (3.Matrix Calculation)
>> A = [1 2; 3 4; 5 6];>> B = [1 2 3; 4 5 6];>> A * Bans = 9 12 15 19 26 33 29 40 51>> C = [2 3; 4 5; 6 7];>> A .* C % the every elements of matrix A multi...原创 2018-06-06 17:16:40 · 210 阅读 · 0 评论 -
Octave (4.Plot Data)
>> t = [0:0.01:0.98];>> y1 = sin(2*pi*4*t);>> plot(t,y1) >> plot(t,y1)>> hold on;>> plot(t,y2,'r');>> legend('sin','cos')>>原创 2018-06-06 18:31:57 · 374 阅读 · 0 评论