Join GitHub today
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.
Sign uppredict.dummyVars - Prior factor levels do not persist when predicting on new data #344
Comments
|
You've found and fixed the problem. Thanks. I've checked in the change and unit tests |
When applying predict.dummyVars to a different data set factor levels do not persist in the creation of the design matrix.
I noticed this issue with caret version 6.0-52. Due to IT constraints I am not able to install the latest version of caret, but checking the code for dummyVars.default and predict.dummyVars it appears this is still an issue.
Example:
predictExample.pdf