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 upAdd empty label drop from factors to caret WIKI #260
Comments
|
It would be better to put a warning that this is occurring or throwing an error. I don't want to silently change the data objects inside the function. |
|
Thank you. |
Hi,
there are a number of cases where I (and others) observed that error "Something is wrong; all the Accuracy metric values are missing:".
Could the label drop function: factor(myFactor,exclude=NULL) to remove unused factor labels be added to the caret pre-processing WIKI? I think that would be helpful, the WIKI is clearly excellent and the best starter (besides the book) for getting a quick taste of the caret.
Also there could be an reference to PDF An introduction to data cleaning with R.
Not sure how many of these ideas in the article above could be added to the convenience method preProcess {caret}, but data pre-processing is surely one of the main time eaters when dealing with real-world ML data, because of so many levels of failure that are possible.
Example code: