mljar-supervised icon indicating copy to clipboard operation
mljar-supervised copied to clipboard

explain mode with metric_type=accuracy results seems abnormal?

Open Tonywhitemin opened this issue 2 years ago • 7 comments

Hi @pplonski I use mljar-AutoML to run a medical dataset (task mission:binary_classification). Mode selected=explain mode metric_type=accuracy The results seems abnormal as figure below... image All the metric_value were the same and didn't match the real value listed in each algorithm folder...(example showed as following) image

And I found that the metric_value:0.825506 seems inserted from the file of "learner_fold_0_training.log". image Could you help? Thanks!

Tonywhitemin avatar Jun 23 '22 05:06 Tonywhitemin

@Tonywhitemin thanks for reporting. Could you provide data and code to reproduce? Is your dataset small?

pplonski avatar Jun 23 '22 05:06 pplonski

Hi @pplonski The code and dataset provided as below zip file for you reference! Thanks for your help! BTW, the dataset is quite small. double_check.zip

Tonywhitemin avatar Jun 23 '22 06:06 Tonywhitemin

Hi @pplonski, do you reproduce the same result successfully? Please let me know if any, thank you!

Tonywhitemin avatar Jun 28 '22 00:06 Tonywhitemin

@Tonywhitemin sorry, dont have time ... Maybe you can try to debug the problem?

pplonski avatar Jun 28 '22 07:06 pplonski

Hi @pplonski it's ok, just follow your plan! I think my ability isn't good enough to solve this problem...

Tonywhitemin avatar Jun 28 '22 09:06 Tonywhitemin

Just wanted to bump this issue as I'm having exactly the same issue. I tried both version 0.11.3 as well as version 0.10.6. I do have to say that the differences are not that big as in the example above, but there is one, and it only appears when using eval_metric='accuracy'.

eg. Leaderboard CSV file: Screenshot 2022-11-18 at 17 56 35

Neural Network README:

## Metric details
|           |    score |     threshold |
|:----------|---------:|--------------:|
| logloss   | 0.393685 | nan           |
| auc       | 0.885321 | nan           |
| f1        | 0.797203 |   0.346923    |
| accuracy  | 0.853933 |   0.573101    |
| precision | 1        |   0.992364    |
| recall    | 1        |   0.000517517 |
| mcc       | 0.690734 |   0.573101    |

I have created a very minimal notebook demonstrating the issue: mljar-supervised-bug-550.zip

JeremyKeusters avatar Nov 18 '22 17:11 JeremyKeusters

@JeremyKeusters thanks for reporting and providing the code+data to reproduce the issue!

Would you like to look into the code and fix the bug?

pplonski avatar Nov 21 '22 14:11 pplonski