Hi,
I am trying to do multi class classification using NB or linear SVM. In the
training data, each data item has 1 to 5 labels. So the data looks something
like below.
X Y
------------- --------------------------------------
lorem ipsum 1 label1, label2, label3
lorem ipsum 2 label1, label3, label6, label2, label4
lorem ipsum 3 label2, label8
lorem ipsum 4 label4
In most of the classifiers, expected shape of y (for fit(X,y) function) is
[n,1] where n is the size of dataset.
Is there any workaround to train and predict this kind of data?
Regards,
Mahendra Kariya
------------------------------------------------------------------------------
October Webinars: Code for Performance
Free Intel webinars can help you accelerate application performance.
Explore tips for MPI, OpenMP, advanced profiling, and more. Get the most from
the latest Intel processors and coprocessors. See abstracts and register >
http://pubads.g.doubleclick.net/gampad/clk?id=60135031&iu=/4140/ostg.clktrk
_______________________________________________
Scikit-learn-general mailing list
Scikit-learn-general@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/scikit-learn-general