https://github.com/lisette-espin/pychimerge
ChiMerge: Discretization of Numeric Attributes
https://github.com/lisette-espin/pychimerge
chimerge discretization python
Last synced: about 1 year ago
JSON representation
ChiMerge: Discretization of Numeric Attributes
- Host: GitHub
- URL: https://github.com/lisette-espin/pychimerge
- Owner: lisette-espin
- Created: 2016-02-24T00:53:13.000Z (over 10 years ago)
- Default Branch: master
- Last Pushed: 2016-03-15T16:56:30.000Z (over 10 years ago)
- Last Synced: 2025-04-19T20:53:44.414Z (about 1 year ago)
- Topics: chimerge, discretization, python
- Language: Python
- Size: 19.5 KB
- Stars: 41
- Watchers: 2
- Forks: 24
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# pychimerge
ChiMerge: Discretization of Numeric Attributes
Python implementation of ChiMerge, a bottom-up discretization method based on ChiSqrt test.
- Reference paper: https://www.aaai.org/Papers/AAAI/1992/AAAI92-019.pdf
# Examples
1. Database: IRIS, Attribute: 1 (Sepal Width)
- Intervals : [ 2. 2.5 3. 3.4]
- Chi2: [0-1) : 4.7, [1-2): 17.1, [2-3): 24.2
- Interval-Class Frequencies (4x3)
- [[ 1. 9. 1.]
[ 1. 25. 20.]
[ 18. 15. 24.]
[ 30. 1. 5.]]
2. Database: TOI Example
- Intervals : [ 1 11 45]
- Chi2 : [0-1): 2.7, [1-2): 3.9
- Interval-Class Frequencies (3x2)
- [[ 4. 1.]
[ 1. 3.]
[ 3. 0.]]