Coursera - multi regression - notes

下一步plotData一大堆复杂逻辑

太复杂我放弃 

matlab选择列的方法

m =5000

rand_indices = randperm(m);   #从m中随机排index

#rand_indices(1:100)  选择前100个,是一个一维数组

sel = X(rand_indices(1:100), :);

#X矩阵中可以这么选择行的原来

  

posted @ 2017-07-28 18:21  烧鸭饭真好吃  阅读(197)  评论(0)    收藏  举报