Closed jeweinberg closed 5 years ago
Try it
# -*- coding: utf-8 -*-
import mdlp
obj = mdlp.MDLP()
x = [1, 2, 3, 4, 5, 6, 7, 8, 9, 10]
y = [0, 0, 0, 1, 1, 1, 1, 1, 1, 1]
#The function will return the index of this point
# and the respective entropy.
print obj.find_cut_index(x, y)
Output: [3, -0.0]
Hi could you please provider an example of how you would use this tool to discretize a variable?