Error in `[.data.table`(data, target) : in R

r
machine_learning
#1

Unable to solve this issue. Please help me out with below issue thanks in advance.

train.task <- makeClassifTask(data = d_train, target = “income_level”)
Warning in makeTask(type = type, data = data, weights = weights, blocking = blocking, :
Provided data is not a pure data.frame but from class data.table, hence it will be converted.
Error in [.data.table(data, target) :
When i is a data.table (or character vector), the columns to join by must be specified either using ‘on=’ argument (see ?data.table) or by keying x (i.e. sorted, and, marked as sorted, see ?setkey). Keyed joins might have further speed benefits on very large data due to x being sorted in RAM.

0 Likes

#2

I have the same problem.

0 Likes