make_learner(fix.factors.prediction = TRUE)
does not have an effect
#2602
Labels
make_learner(fix.factors.prediction = TRUE)
does not have an effect
#2602
See this SO question: https://stackoverflow.com/questions/56553479/r-predicting-with-new-factor-levels-in-mlr-with-regr-svm-task/56587590#56587590
I did a very dirty fix in the
fix-factors
branch that works for this example but probably not if more factor levels innewdata
have missing values.In fact, ,
fix.factors.prediction
sets the missing level toNA
rather than to a level existing in the training data.The text was updated successfully, but these errors were encountered: