Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

predict.dummyVars - Prior factor levels do not persist when predicting on new data #344

Closed
joshbrady opened this issue Dec 31, 2015 · 1 comment

Comments

@joshbrady
Copy link

@joshbrady joshbrady commented Dec 31, 2015

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

@topepo
Copy link
Owner

@topepo topepo commented Jan 1, 2016

You've found and fixed the problem. Thanks. I've checked in the change and unit tests

@topepo topepo closed this Jan 1, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
2 participants
You can’t perform that action at this time.