Re: [Scikit-learn-general] sparse.OneClassSVM usage problem

2012-04-18 Thread Dimitrios Pritsos
On 04/18/2012 06:12 PM, Olivier Grisel wrote: > Le 18 avril 2012 06:51, Dimitrios Pritsos a écrit : >> Ok I ve created the Issue in Git ( I Guess this is the proper place to do >> what Olivier suggested me in the last email in this list) >> >> however what is CV an where I can enable indices=True,

Re: [Scikit-learn-general] sparse.OneClassSVM usage problem

2012-04-18 Thread Dimitrios Pritsos
The *problem is restricted to Sparse Matrices* for dense Matrix everything is working fine. On 04/18/2012 04:51 PM, Dimitrios Pritsos wrote: Ok I ve created the Issue in Git ( I Guess this is the proper place to do what Olivier suggested me in the last email in this list) however what i

Re: [Scikit-learn-general] sparse.OneClassSVM usage problem

2012-04-18 Thread Olivier Grisel
Le 18 avril 2012 06:51, Dimitrios Pritsos a écrit : > > Ok I ve created the Issue in Git ( I Guess this is the proper place to do > what Olivier suggested me in the last email in this list) > > however what is CV an where I can enable indices=True, as it is suggested to > the following message: I

Re: [Scikit-learn-general] sparse.OneClassSVM usage problem

2012-04-18 Thread Dimitrios Pritsos
Ok I ve created the Issue in Git ( I Guess this is the proper place to do what Olivier suggested me in the last email in this list) however what is CV an where I can enable indices=True, as it is suggested to the following message: ValueError: X and y have incompatible shapes: (180, 255) vs

Re: [Scikit-learn-general] sparse.OneClassSVM usage problem

2012-04-17 Thread Dimitrios Pritsos
On 04/17/2012 08:56 PM, Olivier Grisel wrote: > Ok so this is a real bug. Please open an issue. I don't really know how to do that !? > Also I am curious: what does it mean to do OneClass SVM with a linear > kernel? I thought OneClass SVM was for density estimation and I don't > see how on could d

Re: [Scikit-learn-general] sparse.OneClassSVM usage problem

2012-04-17 Thread Olivier Grisel
Ok so this is a real bug. Please open an issue. Also I am curious: what does it mean to do OneClass SVM with a linear kernel? I thought OneClass SVM was for density estimation and I don't see how on could define a finite density function (even if not normalized) with an hyperplane. -- Olivier -

Re: [Scikit-learn-general] sparse.OneClassSVM usage problem

2012-04-17 Thread Dimitrios Pritsos
On 04/17/2012 04:38 PM, Olivier Grisel wrote: > Le 17 avril 2012 05:32, Dimitrios Pritsos a écrit : >> Hello again >> >> I am trying to run an OneClassSVM() test: >> >> import sklearn.svm.sparse as sp_svm >> >> ocsvm = sp_svm.OneClassSVM(nu=0.5, kernel='linear') >> >> ocsvm.fit( ssp.csr_matrix

Re: [Scikit-learn-general] sparse.OneClassSVM usage problem

2012-04-17 Thread Olivier Grisel
Le 17 avril 2012 05:32, Dimitrios Pritsos a écrit : > > Hello again > > I am trying to run an OneClassSVM() test: > > import sklearn.svm.sparse as sp_svm > > ocsvm = sp_svm.OneClassSVM(nu=0.5, kernel='linear') > > ocsvm.fit( ssp.csr_matrix(train_X, shape=train_X.shape, dtype=np.float64) ) > > >  a

[Scikit-learn-general] sparse.OneClassSVM usage problem

2012-04-17 Thread Dimitrios Pritsos
Hello again I am trying to run an OneClassSVM() test: /import/ sklearn.svm.sparse as sp_svm ocsvm = sp_svm.OneClassSVM(nu=0.5, kernel='linear') ocsvm.fit( ssp.csr_matrix(train_X, shape=train_X.shape, dtype=np.float64) ) and I am getting the following message: File "/home/dimitrios/Develo