Skip to content

Assign custom classes to errors and warnings #1283

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

Open
sebffischer opened this issue Apr 11, 2025 · 0 comments
Open

Assign custom classes to errors and warnings #1283

sebffischer opened this issue Apr 11, 2025 · 0 comments

Comments

@sebffischer
Copy link
Member

sebffischer commented Apr 11, 2025

With mlr-org/mlr3misc#133 we now get the ability to assign custom classes to our conditions.
We should do this for those conditions that users might want to disable.
For those, the roxygen section Errors and Warnings should list the error class and describe the condition, see e.g.,

mlr3/R/benchmark_grid.R

Lines 18 to 19 in fd6b3ea

#' @section Errors and Warnings:
#' * `varying_predict_types`: This warning will be thrown if the learners have different `predict_type`s.
.

@sebffischer sebffischer changed the title Assign custom classes to errors and conditions Assign custom classes to errors and warnings Apr 14, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant