powered by
This measure calculates the gain ratio value Quinlan1986FSinR, using the information theory.
gainRatio(data, class, features)
A data frame with the features and the class of the examples. Feature columns are expected to be factors, as all features should be discrete.
The name of the dependent variable
The names of the selected features
The gain ratio value for the selected features.
# NOT RUN { gainRatio(iris,'Species',c('Sepal.Width', 'Sepal.Length')) # }
Run the code above in your browser using DataLab