powered by
This measure calculates the mutual information value, using the information theory QianShu2015FSinR.
mutualInformation(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 mutual information value for the selected features
# NOT RUN { mutualInformation(iris,'Species',c('Sepal.Width', 'Sepal.Length')) # }
Run the code above in your browser using DataLab