Skip to content

Minimum description length principle algorithm in Python, for optimal binning of continuous variables

License

Notifications You must be signed in to change notification settings

maxpumperla/entropy-mdlp

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

entropy-mdlp

Minimum description length principle algorithm in python, for optimal binning of continuous variables. This package is a port of the respective R package of the same name. Install with

pip install entropymdlp

and then run an example like so:

import entropymdlp as 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(mdlp.find_cut_index(x, y))

About

Minimum description length principle algorithm in Python, for optimal binning of continuous variables

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 4

  •  
  •  
  •  
  •