Rambatino / CHAID

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

Added accuracy method #90

Closed Rambatino closed 6 years ago

Rambatino commented 6 years ago

Added an accuracy method, as this library is severely lacking one. It's actually just 1 - risk, so I refactored accordingly.

I also moved the spss import down before it's usage. if you're dealing with CSVs, it doesn't force you to install the SPSS library.

codecov[bot] commented 6 years ago

Codecov Report

Merging #90 into master will increase coverage by 0.02%. The diff coverage is 100%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master      #90      +/-   ##
==========================================
+ Coverage   94.24%   94.26%   +0.02%     
==========================================
  Files           7        7              
  Lines         556      558       +2     
==========================================
+ Hits          524      526       +2     
  Misses         32       32
Impacted Files Coverage Δ
CHAID/tree.py 96.66% <100%> (+0.05%) :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 c0927d1...bdb4420. Read the comment docs.