机器学习
freshru
这个作者很懒,什么都没留下…
展开
-
斯坦福 机器学习 ex2
1 Logistic Regression1.1 Visualizing the data在plotData.m中,添加如下代码:pos = find(y==1); neg = find(y==0);plot(X(pos,1),X(pos,2),'k+','LineWidth',2,'MarkerSize',7);%X(pos,1)and X(pos,2) 得到正样本的行列坐标原创 2015-05-02 19:10:16 · 2511 阅读 · 0 评论 -
斯坦福 机器学习 ex1
1 Simple Octave/MATLAB function在warmUpExercise.m,中,添加代码A = eye(5);%定义5*5的对角矩阵运行ex1.m后结果为:Running warmUpExercise ... 5x5 Identity Matrix: ans = 1 0 0 0 0 0原创 2015-05-02 15:15:45 · 2219 阅读 · 2 评论