-
-
Notifications
You must be signed in to change notification settings - Fork 85
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
feat: offset column role in Task #1225
base: main
Are you sure you want to change the base?
Conversation
stopf("Offset column(s) %s must be a numeric or integer column", paste0("'", new_roles[["offset"]], "'", collapse = ",")) | ||
} | ||
|
||
if (any(task$missings(cols = new_roles[["offset"]]) > 0)) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Maybe use a shorter circuit (something like mlr3misc::some
)
@@ -4,10 +4,12 @@ | |||
#' The following properties are currently standardized and understood by learners in \CRANpkg{mlr3}: | |||
#' * `"missings"`: The learner can handle missing values in the data. | |||
#' * `"weights"`: The learner supports observation weights. | |||
#' * `"offset"`: The learner can incorporate offset values to adjust predictions. | |||
#' * `"importance"`: The learner supports extraction of importance scores, i.e. comes with an `$importance()` extractor function (see section on optional extractors in [Learner]). |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@be-marc here hotstart_forward
, hotstart_backward
and featureless
are not documented, but they should be perhaps?
offset
for mlr3 learnersxgboost
inmlr3learners
uses this now mlr3learners PR