Open larskotthoff opened 2 months ago
Thanks for reaching out! This error message appears because the model already predicts a probability > 75% for class good for Charlie, so computing a counterfactual with a prob > 75% with WhatIfClassif` (or any other method) makes no sense.
The reason why no error message appears in the book is that for the book we use a specific seed at the beginning of each chapter (https://mlr3book.mlr-org.com/chapters/chapter1/introduction_and_overview.html#reproducibility).
If you use set.seed(123)
and run the above code (thanks for providing it!), no error message should be thrown.
Thanks -- I get the error with seed 123 set, and the build of the book is failing with this error message as well at the moment.
I'm getting an error when I run this example from the mlr3 book:
traceback:
Complete example to reproduce: