Re: [scikit-learn] random forests and multil-class probability

2021-08-14 Thread Francois Dion
Yellowbrick has multi label precision recall curves and multiclass roc/auc builtin: https://www.scikit-yb.org/en/latest/api/classifier/rocauc.html Sent from my iPad > On Jul 27, 2021, at 6:03 AM, Guillaume Lemaître > wrote: > > As far that I remember, `precision_recall_curve` and

Re: [scikit-learn] random forests and multil-class probability

2021-08-14 Thread Matteo Caorsi
Greetings! I am currently out of office, with limited access to emails, till August the 30th. Please contact supp...@giotto.ai for technical issues concerning Giotto Platform. Otherwise, I will reply to your email as soon as possible upon my return. With best regards, Matteo On 27 Jul 2021,

Re: [scikit-learn] random forests and multil-class probability

2021-08-14 Thread Matteo Caorsi
Greetings! I am currently out of office, with limited access to emails, till August the 30th. Please contact supp...@giotto.ai for technical issue concerning Giotto Platform. Otherwise, I will reply to your email as soon as possible upon my return. With best regards, Matteo On 27 Jul 2021,

Re: [scikit-learn] random forests and multil-class probability

2021-08-14 Thread Matteo Caorsi
Greetings! I am currently out of office, with limited access to emails, till August the 30th. Please contact supp...@giotto.ai for technical issues concerning Giotto Platform. Otherwise, I will reply to your email as soon as possible upon my return. With best regards, Matteo On 27 Jul 2021,

Re: [scikit-learn] random forests and multil-class probability

2021-08-14 Thread Matteo Caorsi
Greetings! I am currently out of office, with limited access to emails, till August the 30th. Please contact supp...@giotto.ai for technical issue concerning Giotto Platform. Otherwise, I will reply to your email as soon as possible upon my return. With best regards, Matteo On 27 Jul 2021,

Re: [scikit-learn] random forests and multil-class probability

2021-07-27 Thread Brown J.B. via scikit-learn
2021年7月27日(火) 12:03 Guillaume Lemaître : > As far that I remember, `precision_recall_curve` and `roc_curve` do not > support multi class. They are design to work only with binary > classification. > Correct, the TPR-FPR curve (ROC) was originally intended for tuning a free parameter, in signal

Re: [scikit-learn] random forests and multil-class probability

2021-07-27 Thread Guillaume Lemaître
As far that I remember, `precision_recall_curve` and `roc_curve` do not support multi class. They are design to work only with binary classification. Then, we provide an example for precision-recall that shows one way to compute precision-recall curve via averaging:

Re: [scikit-learn] random forests and multil-class probability

2021-07-27 Thread Sole Galli via scikit-learn
Thank you! So when in the multiclass document says that for the algorithms that support intrinsically multiclass, which are listed [here](https://scikit-learn.org/stable/modules/multiclass.html), when it says that they do not need to be wrapped by the OnevsRest, it means that there is no

Re: [scikit-learn] random forests and multil-class probability

2021-07-27 Thread Nicolas Hug
To add to Guillaume's answer: the native multiclass support for forests/trees is described here: https://scikit-learn.org/stable/modules/tree.html#multi-output-problems It's not a one-vs-rest strategy and can be summed up as: * Store n output values in leaves, instead of 1;

Re: [scikit-learn] random forests and multil-class probability

2021-07-27 Thread Sole Galli via scikit-learn
Thank you! I was confused because in the multiclass documentation it says that for those estimators that have multiclass support built in, like Decision trees and Random Forests, then we do not need to use the wrapper classes like the OnevsRest. Thus I have the following question, if I want

Re: [scikit-learn] random forests and multil-class probability

2021-07-27 Thread Guillaume Lemaître
> On 27 Jul 2021, at 11:08, Sole Galli via scikit-learn > wrote: > > Hello community, > > Do I understand correctly that Random Forests are trained as a 1 vs rest when > the target has more than 2 classes? Say the target takes values 0, 1 and 2, > then the model would train 3 estimators 1

[scikit-learn] random forests and multil-class probability

2021-07-27 Thread Sole Galli via scikit-learn
Hello community, Do I understand correctly that Random Forests are trained as a 1 vs rest when the target has more than 2 classes? Say the target takes values 0, 1 and 2, then the model would train 3 estimators 1 per class under the hood?. The predict_proba output is an array with 3 columns,