Skip to content

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

License

Notifications You must be signed in to change notification settings

airysen/mdlp

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

34 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Minimum Description Length Binning

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

*Fayyad, Usama M.; Irani, Keki B. (1993) "Multi-Interval Discretization of Continuous-Valued Attributes for Classification Learning" , Proceedings of the International Joint Conference on Uncertainty in AI (Q334 .I571 1993), pp. 1022-1027 https://trs.jpl.nasa.gov/handle/2014/35171

Please read the original paper here for more information.

Tests

To run the unit tests, make sure you have nose installed. Afterwards,

$ make test

should do the trick.

Installation and Usage

This code was built using Cython, so you have to run the makefile in the directory.

$ pip3 install mdlp
>>> from mdlp 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)

I recommend creating a virtual environment for this project.

About

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

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Python 99.5%
  • Makefile 0.5%