Blog

Fix can’t have empty classes in y

The error message Error in randomforest.default(m, y, ...) : can't have empty classes in y in R typically occurs when you're trying to build a Random Forest model using the randomForest package, and the response variable (y) contains classes with no instances or data...

read more