pycaret icon indicating copy to clipboard operation
pycaret copied to clipboard

[ENH]: Default behavior of predict_model in classification

Open moezali1 opened this issue 2 years ago • 2 comments

pycaret version checks

  • [X] I have checked that this issue has not already been reported here.

  • [X] I have confirmed this bug exists on the latest version of pycaret.

  • [X] I have confirmed this bug exists on the develop branch of pycaret (pip install -U git+https://github.com/pycaret/pycaret.git@develop).

Issue Description

I have opened this issue to discuss the default behavior of the predict_model function in the classification module.

At the moment when predict_model is called, we show the Label column and the Score column which represents the probability of predicted class as opposed to (commonly known/used) probability of positive class.

Should we take 3.0 as an opportunity to change this behavior and show the probability of predicted class as opposed to predicted class? why or why not?

image

Reproducible Example

.

Expected Behavior

.

Actual Results

.

Installed Versions

3.0

moezali1 avatar May 12 '22 00:05 moezali1

And what would you show with multiclass classification tasks? Since there is not one positive class... We could show the predicted probabilities of all classes

tvdboom avatar May 12 '22 08:05 tvdboom

Let's take a poll.

moezali1 avatar May 12 '22 11:05 moezali1