Skip to content
Prev 391379 / 398500 Next

NAs error in caret function

Hi,

There are many things than could be wrong:

1. What is inside "ctrl" in the trainControl argument ?
2. Your model is a classication one, but if you do not configure correctly
"ctrl" you do not get out the metrics correctly. It depends if your model
is binary or multi-class.
3. Another thing is that if it is a classification one, you should also
check that in the "train()" you "train_label" is a factor.

On top of that, remember that your problem is not reproducible.
If you attach a portion of your data, we could create a working "caret"
code.

Thanks,
Carlos Ortega.
On Wed, Apr 20, 2022 at 10:26 PM Bert Gunter <bgunter.4567 at gmail.com> wrote: