GH-16184 Add possibility to set auc_type in AutoML#16367
GH-16184 Add possibility to set auc_type in AutoML#16367maurever wants to merge 2 commits intorel-3.46.0from
Conversation
tomasfryda
left a comment
There was a problem hiding this comment.
So far it looks good but could you add an R test and some documentation.
I think it would be also a good idea to expose it the same way we expose monotone_constraints .
And last but not the least, could you make sure it works with stopping_metric and that the metric actually ends up in the leaderboard? (In the multinomial case)
|
@tomasfryda, thanks for your suggestions! It is the question if it is necessary to expose it similarly to the monotone_constraints parameter. I found out we can add algo parameters in this way, but it is nowhere documented. So, it's a good point to do that. Why adding a new parameter to the AutoML class is better than using the algo_parameters parameter? Definitely a good point to add an R test and test with early stopping. |
|
I think |
|
@tomasfryda, thanks for explanation. Ok, I will do it like the monotone_contraint parameter, no problem. I am not a fan of many parameters, so I tried to find a different solution. :) |
| sort_metric = c("AUTO", "deviance", "logloss", "MSE", "RMSE", "MAE", "RMSLE", "AUC", "AUCPR", "mean_per_class_error"), | ||
| export_checkpoints_dir = NULL, | ||
| verbosity = "warn", | ||
| auc_type="NONE", |
There was a problem hiding this comment.
should be:
| auc_type="NONE", | |
| auc_type=c("NONE", "MACRO_OVO", "WEIGHTED_OVO", "MACRO_OVR", "WEIGHTED_OVR", "AUTO"), |
And please see match.arg (https://www.rdocumentation.org/packages/base/versions/3.6.2/topics/match.arg) or you can use case-insensitive version from explain module
h2o-3/h2o-r/h2o-package/R/explain.R
Lines 2 to 27 in 18341e3
There was a problem hiding this comment.
Thank @tomasfryda for the suggestion. I am still working on this PR. I converted it to a draft. I would like you to review it after I finish it. Thanks!
There was a problem hiding this comment.
I'm always happy to help with automl or R so feel free to ask if there is something unclear.
Issue: #16184