标签:
I have some issues to state. First, there were some bugs in original code which may be caused by versions. I don‘t know...
There are three pictures u need to draw a division boundary. The first calls ‘visualizeBoundaryLinear.m‘ which is fine, but the others which call ‘visualizeBoundary.m‘ can not
draw boundaries. So I check out this file and change the code ‘contour(X1, X2, vals, [0 0], ‘Color‘, ‘b‘);‘ to ‘contour(X1, X2, vals, [0.1 0.1], ‘linecolor‘,‘b‘);‘, then it turn out to work!
Second, It‘s fun to achieve the SVM for spam-email filter. Everything about it is in ex6.pdf. U should learn more about this.
Finally, my code is also in gitlab which you can click here to get it.
It is really fansinated to see all functions run in a correct way!
Coursera公开课-Machine_learing:编程作业6
标签:
原文地址:http://www.cnblogs.com/luntai/p/5917978.html