On Mon, Oct 06, 2014 at 04:56:22PM -0300, Nicolas Emiliani wrote:
> This will print out:
>  
>     >>> array([[  0.,   1.,  68.]])

> but ... how do I know which position in that array belongs to which class ?
> The classifier has a classes_ attribute which is also a list

>     >>> clf.classes_
>     array(['CLASS_1', 'CLASS_2', 'CLASS_3'], dtype=object)

> Maybe index 1 on the value array matches the class on index 1 of the classes
> array and so on? 

Yes.

Gaël

------------------------------------------------------------------------------
Slashdot TV.  Videos for Nerds.  Stuff that Matters.
http://pubads.g.doubleclick.net/gampad/clk?id=160591471&iu=/4140/ostg.clktrk
_______________________________________________
Scikit-learn-general mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/scikit-learn-general

Reply via email to