Replies: 1 comment 1 reply
-
Are you using non-ascii characters? library(mlr3)
library(data.table)
options(mlr3.allow_utf8_names = TRUE)
data = data.table(target = 1, Æ = 1)
as_task_regr(data, target = "target") Note,
|
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I am trying an old project using mlr3 for learning purposes. The data has hundreds of variables directly downloaded from a database, so the names of those variables may not necessarily follow R's naming conventions. It is also inpractical to rename them. With many of those variables with non-R names, here is the error message I got.
Also this error will definitely occur if I tries to re-encode data with sparse matrix, like
This will create more unconventional variable names.
Could
mlr3
relax the naming conventions?Beta Was this translation helpful? Give feedback.
All reactions