Rambatino / CHAID

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

Added graph specs and switched off true divide warnings for specs #111

Closed Rambatino closed 4 years ago

Rambatino commented 4 years ago

Added a simple graph unit test to test whether the output makes sense.

Circle CI looked to be a pain to setup both windows and linux, they have a single windows orb but I'd need to create another ci config file.

Also, switched off true divide warnings in the spec case as they are expected.

closes #110 closes #106 closes #104

codecov[bot] commented 4 years ago

Codecov Report

Merging #111 into master will increase coverage by 3.51%. The diff coverage is n/a.

Impacted file tree graph

@@            Coverage Diff             @@
##           master     #111      +/-   ##
==========================================
+ Coverage   89.61%   93.13%   +3.51%     
==========================================
  Files           8        8              
  Lines         626      626              
==========================================
+ Hits          561      583      +22     
+ Misses         65       43      -22     
Impacted Files Coverage Δ
CHAID/tree.py 96.77% <0.00%> (+0.80%) :arrow_up:
CHAID/graph.py 78.00% <0.00%> (+42.00%) :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 732fdfb...63084d1. Read the comment docs.