You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Sometimes preprocess_data() throws an error when calling
caret::dummyVars():
Error in get(ctr, mode = "function", envir = parent.frame()) :
object 'contr.ltfr' of mode 'function' was not found
Calls: <Anonymous> ... model.matrix -> model.matrix.default -> contrasts -> get
This error happens sometimes when using categorical features,
but not for all datasets with categorical features.
It happened to Jay with her CRC datasets split by condition when the
plate ID column was included as a feature.
For some reason, loading either mikropml or caret with library() in
scripts fixes the problem.
0 commit comments