DATA MINING
Desktop Survival Guide by Graham Williams |
|||||
Some tools will attempt to model all levels in an output variable. If
there are no entities in the dataset with a value for one of the
levels of an output variable, the tool will fail (e.g.,
randomForest). To remove unused levels from a factor:
> dataset$Target <- dataset$Target[,drop=TRUE] |