This is an implementation of Usama Fayyad's entropy based expert binning method.
Please read the original paper here. for more information
Feel free to run the tests using nose.
cd tests
nosetests test_mdlp
This code was built using Cython, so you have to run the makefile in the directory.
$ make
Afterwards, assuming that discretization.py and _mdlp.so are in the
same directory, you can import the MDLP class.
>>> from discretization import MDLP
>>> from sklearn.datasets import load_iris
>>> iris = load_iris()
>>> X = iris.data
>>> y = iris.target
>>> mdlp = MDLP()
>>> conv_X = mdlp.fit_transform(X, y)