mikesiers / wattle

A generic decision tree algorithm template. Extend it to implement algorithms such as C4.5, CART, or CSTree
0 stars 0 forks source link

Classes need object equality testing functions. #11

Closed mikesiers closed 7 years ago

mikesiers commented 7 years ago

Prerequisite Issues

Overview of the Issue

The decision tree splitting library chainsaw is using wattle. Something that has been noted during its unit test development is that object equality cannot be performed concisely. This is a fault of wattle. To fix this, wattle needs class equality testing functions for each class.

Tasks to Complete Issue

mikesiers commented 7 years ago

How to Implement Object Equality Testing Function

Two functions are needed. __eq__() and __ne__(). For more information, see here.

mikesiers commented 7 years ago

The work in this issue was completed by 14f74e9. It will be added later as part of a pull request.