[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

Re: [Numpy-discussion] packbits / unpackbits bugs or misfeatures?

2014-11-29 Thread Charles R Harris
On Sat, Nov 29, 2014 at 6:49 PM, Alan G Isaac wrote: > Six years ago Zachary Pincus wrote: > > it would kind of make more sense, at least to me, for > > unpackbits to return a boolean array, and packbits to take > > boolean arrays. I could try to look into fixing the code > > instead of the docs

Re: [Numpy-discussion] packbits / unpackbits bugs or misfeatures?

2014-11-29 Thread Alan G Isaac
Six years ago Zachary Pincus wrote: > it would kind of make more sense, at least to me, for > unpackbits to return a boolean array, and packbits to take > boolean arrays. I could try to look into fixing the code > instead of the docs, if others agree. I agree with this. (Better late than never?