Skip to content

jacowp357/mdlp-discretization

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

19 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Minimum Description Length Binning

This is an implementation of Usama Fayyad's entropy based expert binning method.

Please read the original paper here. for more information

Tests

Feel free to run the tests using nose.

cd tests
nosetests test_mdlp

Installation and Usage

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)

About

An implementation of the minimum description length principal expert binning algorithm by Usama Fayyad

Resources

Stars

0 stars

Watchers

1 watching

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages

  • Python 99.6%
  • Makefile 0.4%