mlr-org / mlr3pipelines

Dataflow Programming for Machine Learning in R
https://mlr3pipelines.mlr-org.com/
GNU Lesser General Public License v3.0
140 stars 25 forks source link

Add error message in PipeOpSmote for Tasks with non-feature cols #815

Closed advieser closed 1 month ago

advieser commented 2 months ago

This adds an informative error message to PipeOpSmote for the case in which a task with columns is passed to the pipeop that SMOTE does not know how to handle, i.e. non-feature or non-target columns..

Addtionally, we replace .select_cols(task) with task$feature_types as this should only be used when overloading .train_dt() and .predict_dt() (see documentation of PipeOpTaskPreproc).

closes https://github.com/mlr-org/mlr3pipelines/issues/811