caret (Classification And Regression Training) R package that contains misc functions for training and plotting classification and regression models
1.61k
stars
632
forks
source link
caret can't handle NA roles in recipes #1293
Open
EmilHvitfeldt opened 2 years ago
If a recipe has NA roles caret errors out (uninformatively).
This is happening because of cases like:
https://github.com/topepo/caret/blob/679eabaac7e54f4e87efa6c3bff75659cb457d8b/pkg/caret/R/train_recipes.R#L139-L140
Where
is_weight
has NAs in them.A small internal helper function can properly be used to fix this error
Created on 2022-06-14 by the reprex package (v2.0.1)