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
I did a very dirty fix in the fix-factors branch that works for this example but probably not if more factor levels in newdata have missing values.
In fact, ,fix.factors.prediction sets the missing level to NA rather than to a level existing in the training data.
The text was updated successfully, but these errors were encountered:
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: