-
Notifications
You must be signed in to change notification settings - Fork 8
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
Error that occurs when using the custom metric during parallel hyperparameter tuning. #116
Comments
Just noting that I can reproduce this. An admittedly cumbersome way around this right now is to drop |
@simonpcouch Sorry, I should have loaded the packages at the beginning. Now these results can be reproduced. |
I'm not sure I understand this most recent reply, but we'll be coming back to this as we continue to improve our support for parallelism! |
Anyway, thank you! |
When I change "cl = makePSOCKcluster(ncores)" to "cl = makeForkCluster(ncores)", everything works fine! |
Turns out we can replicate this issue with tune alone—I just filed an issue there and will address soon! Thank you! |
I have defined a custom metric (partial ROC AUC) myself, the code is as follows:
I can use defined metric function
pauc
on the example:The results are as follows:
Then, I used
tune_race_anova
to tune thebag_tree
model.When not using parallel computation, using the defined
pauc
metric works correctly:However, when I use parallel computation, an error occurs:
When I use
roc_auc
as the metric for parallel hyperparameter tuning, everything works fine. Therefore, I believe the source of the error is in the parallel computation.The text was updated successfully, but these errors were encountered: