Blog

懒癌晚期


Project maintained by VirusPC Hosted on GitHub Pages — Theme by mattgraham

Back Home

向量化的优点

一个简单的例子

prediction = 0.0
for j = 1:n+1  % matlab中向量下标从1开始
  prediction = predictrion +
               theta(j) * x(j)
end;
prediction = theta' * x;

一个较为复杂的例子


课程链接