Rambatino / CHAID

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

Warnings have appeared when running specs locally. The bit rot is real #105

Closed Rambatino closed 4 years ago

Rambatino commented 4 years ago
tests/test_tree.py::test_zero_subbed_weighted_ndarry
  /Users/mark/zappi/CHAID/CHAID/stats.py:15: RuntimeWarning:

  invalid value encountered in true_divide

  /Users/mark/anaconda3/lib/python3.6/site-packages/scipy/stats/stats.py:4544: RuntimeWarning:

  invalid value encountered in true_divide

tests/test_tree.py::TestBugFixes::test_incorrect_weighted_counts
  /Users/mark/zappi/CHAID/CHAID/stats.py:15: RuntimeWarning:

  invalid value encountered in true_divide

tests/test_tree.py::TestStoppingRules::test_min_child_node_size_does_not_stop_for_weighted_case
  /Users/mark/zappi/CHAID/CHAID/stats.py:15: RuntimeWarning:

  invalid value encountered in true_divide

tests/test_tree.py::TestStoppingRules::test_min_child_node_size_does_stop_for_weighted_case
  /Users/mark/zappi/CHAID/CHAID/stats.py:15: RuntimeWarning:

  invalid value encountered in true_divide

-- Docs: http://doc.pytest.org/en/latest/warnings.html
Rambatino commented 4 years ago

Turns out pytest just handles them differently. It's likely they were always there.

http://doc.pytest.org/en/latest/warnings.html