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 made some tests using iris and an additional attribute with a single value. The first test added a numeric attribute and the second test added a factor attribute:
The first test returns an (expected) warning in the cov function. The second test returns an error caused by the single level attribute in the model.matrix (in the binarize function).
I checked how the other packages deal with that. While the rpart and nnet remove the attribute, the e1071 and kknn return the same error.
I was reported that when the base has factor attributes with a single level it breaks the code.
Create a test to assess and fix this issue.
The text was updated successfully, but these errors were encountered: