0

I'm training a model with Caret package. The training table if fine and I don't do any changes to it.

Why then am I getting the Setting row names on a tibble is deprecated. error?

mRiddle
  • 214
  • 1
  • 7
  • 22
  • It's a warning, no? – Tung Mar 10 '18 at 09:23
  • It is, but, I am training a cart model and each time I get this warning, instead of a tree the model creates a single leaf. . . – mRiddle Mar 10 '18 at 17:30
  • 1
    It's a warning from `tibble` letting you know that they don't want to set rownames on tibbles and intend to convert the warning into an error in the future. Unfortunately `caret` uses rownames still. Just use `as.data.frame` to avoid the warning. Most likely it has nothing to do with your model not working. – Calum You Mar 10 '18 at 20:25

1 Answers1

1

I moved from data.frame to data.table - no warnings anymore, and I can manipulate the data much faster and easier with my SQL background.

mRiddle
  • 214
  • 1
  • 7
  • 22