Rambatino / CHAID

A python implementation of the common CHAID algorithm
Apache License 2.0
149 stars 50 forks source link

Added exhaustive CHAID #113

Closed Rambatino closed 3 years ago

Rambatino commented 3 years ago

Run with --exhaustive flag e.g:

python -m CHAID tests/data/titanic.csv survived sex embarked --max-depth 4 --min-parent-node-size 2 --alpha-merge 0.5 --dependent-variable-type continuous --exhaustive

This feature comes from a request from #112 - to make an exhaustive selection of the choices.

Rambatino commented 3 years ago

Fixes https://github.com/Rambatino/CHAID/issues/112

codecov[bot] commented 3 years ago

Codecov Report

Merging #113 into master will decrease coverage by 0.22%. The diff coverage is 91.66%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master     #113      +/-   ##
==========================================
- Coverage   93.13%   92.90%   -0.23%     
==========================================
  Files           8        8              
  Lines         626      634       +8     
==========================================
+ Hits          583      589       +6     
- Misses         43       45       +2     
Impacted Files Coverage Δ
CHAID/stats.py 96.51% <90.00%> (-1.08%) :arrow_down:
CHAID/invalid_split_reason.py 100.00% <100.00%> (ø)
CHAID/tree.py 96.80% <100.00%> (+0.02%) :arrow_up:

Continue to review full report at Codecov.

Legend - Click here to learn more Δ = absolute <relative> (impact), ø = not affected, ? = missing data Powered by Codecov. Last update f5737f4...0144829. Read the comment docs.