mlr-org / mlr3

mlr3: Machine Learning in R - next generation
https://mlr3.mlr-org.com
GNU Lesser General Public License v3.0
914 stars 84 forks source link

feat: export col_info function #941

Closed sebffischer closed 10 months ago

sebffischer commented 1 year ago

Without this (I think) it is not possible to add new methods for other backends.

Explanation:

In mlr3torch we have some tasks that download data from the internet and they are wrapped in a DataBackendLazy. In order to still convert the mlr_tasks dictionary to a data.table (without downloading the data) the column information is provided hard-coded and hence requires a custom col_info method.