<div dir="ltr">Perhaps a very newbie question but when you call clf.predict is it possible to have the function return more than just a single prediction? As in, if I have 4 target labels, is it possible to get, for each test sample, the probability (or some other metric) with which the classifier thinks that each of those 4 target labels apply?<div>

<br></div><div>So for example, if you had target types of "animal", "vegetable", "mineral", and "person" and you trained up a classifier, then with clf.predict I could submit a handful of test samples and get results like </div>

<div><br></div><div>["vegetable"</div><div>"vegetable"</div><div>"animal"</div><div>"person"</div><div>"mineral"</div><div>"mineral"]</div><div><br></div><div>But is there any way to instead get a read out that says something like, for the first sample the classifier would have picked vegetable first, then animal, then person, and lastly mineral.  For the second sample however the classifier would have picked vegetable then person, then animal, then mineral?  So I could see not only what option the model predicts but also how close was each test sample to the other options as well?<br>

</div><div><br></div><div>Thanks in advance</div><div><br></div><div>Cheers,</div><div>Jason</div><div><br></div><div><br></div><div><br></div></div>