Thanks Vlad. I will take a look at the link and get back to this awesome
community in case of any more questions.
Regards,
Mahendra Kariya
On Sunday, 20 October 2013 5:10 PM, Vlad Niculae <[email protected]> wrote:
Hi,
>
>We refer to such a setting as *multi-label*. Please take a look at
>http://scikit-learn.org/stable/modules/multiclass.html
>
>Yours,
>Vlad
>
>
>On Sun, Oct 20, 2013 at 1:19 PM, Mahendra Kariya
><[email protected]> wrote:
>> 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
>> [email protected]
>> https://lists.sourceforge.net/lists/listinfo/scikit-learn-general
>
>>
>
>
>
------------------------------------------------------------------------------
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
[email protected]
https://lists.sourceforge.net/lists/listinfo/scikit-learn-general