Coursera公开课-Machine_learing:编程作业6

Support Vector Machines

  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!

 

posted on 2016-09-28 21:09  暴力的轮胎  阅读(315)  评论(0编辑  收藏  举报

导航