hi, Y has to be a dense array to work.
given the size of your problem it may be a problem. you can open an issue Alex On Thu, Oct 15, 2015 at 8:23 AM, Startup Hire <blrstartuph...@gmail.com> wrote: > Hi Pypers, > > Hope you are doing well. > > I am doing multi label classification in which my X and Y are sparse > matrices with Y properly binarized. > > When I am running the below code, the following error comes: > > Code: Classifier = > OneVsRestClassifier(SGDClassifier(random_state=0,loss='log',alpha=0.00001,penalty='elasticnet')).fit(x_train,y_train) > > > TypeError: len() of unsized object > > > > x_train.shape --> > (1047096, 13131) > > > y_train.shape --> (1047096, 7) > > > Let me know in what direction should I check my work? > > > Regards, > > Sanant > > > > > ------------------------------------------------------------------------------ > > _______________________________________________ > Scikit-learn-general mailing list > Scikit-learn-general@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/scikit-learn-general > ------------------------------------------------------------------------------ _______________________________________________ Scikit-learn-general mailing list Scikit-learn-general@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/scikit-learn-general