Re: [Numpy-discussion] Maximum-margin linear classifier

2014-11-30 Thread Nathaniel Smith
Hi Mohan, While you might get responses here, you'll probably have better luck asking on the scikit-learn list. (I assume you are using scikit-learn for the svm?) That's where you'll find experts on the details of these models hanging out - this is the list for numpy itself, and numpy doesn't incl

[Numpy-discussion] Maximum-margin linear classifier

2014-11-29 Thread Mohan Radhakrishnan
Hi, I am a beginner. I have 4 points and wish to plot the classifier separation line. I believe this code without the plot is correct. Can I look at sample plotting code(with basic explanation) for this simple SVM ? X = [[3,3], [7,2], [5,4], [8,3]] Y = [-1, -1, 1, 1] clf = svm.SVC(kerne