# NOT RUN {
information_gain(factor(c(0,1)), factor(c(1,0)))
information_gain(factor(c(0,0,1,1)), factor(c(0,1,1,1)))
information_gain(factor(c(0,0,1,1)), factor(c(0,1,0,1)))
# }
# NOT RUN {
information_gain(c(0,1), c(1,0))
# }
Run the code above in your browser using DataLab