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

Reply via email to