-
Notifications
You must be signed in to change notification settings - Fork 517
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
AutoML compatibility w/ sklearn cross-validation & roc_auc #466
Comments
Not sure because it is not applicable to all learners and tasks.
Yes, it makes sense. Would you like to add it?
We used this to make it work for automlbenchmark. Let me try converting it to
|
Thanks for the quick turn around. |
To perform nested cross-validation:
However that requires AutoML to have a
score()
method available. Okay, let's explicitly give sklearn a scoring method:This ends up in sklearn's
_BaseScorer._select_proba_binary()
which requiresclasses_
to be a Numpy ndarray. AutoML explicitly is turning these to a list. So there is an error.Full example:
Leads to error:
A workaround is to override
classes_
to have it return an array:Since a workaround was found, this isn't high priority, but I wonder:
decision_function()
make sense for AutoML?score()
function make sense?.tolist()
the.classes_
?FLAML 0.9.6, scikit-learn 1.0.2
The text was updated successfully, but these errors were encountered: