scikit-learn-contrib / skope-rules

machine learning with logical rules in Python
http://skope-rules.readthedocs.io
Other
599 stars 96 forks source link

Fix tests and imports #55

Open AndrewTanQB opened 3 years ago

AndrewTanQB commented 3 years ago

Description

This PR contains some fixes to get tests working and build passing, primarily around updating tests and imports to handle deprecation of various sklearn testing functions and other imports.

Instead of pinning a new sklearn version, have tried to maintain compatibility with a bunch of try-except blocks, but would be happy to hear thoughts on this approach. May also be worthwhile to add different sklearn versions in the travis CI build.

AndrewTanQB commented 3 years ago

@ngoix - i attempted to fix the tests as per discussion on other PR, do let me know if any thoughts?