scikit-learn-contrib / skope-rules

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

Possibility to round values displayed in rules #27

Open druzkaya opened 4 years ago

druzkaya commented 4 years ago

Would be good to add an argument to round feature values in .rules_, else it's usual to have floats very high precision, which is not convenient when working with a rule as string. Or maybe change the format to have in sublists feature_name/operator/value to facilitate the use of these information in tables or graphs.

ngoix commented 4 years ago

This is a good idea indeed , PR welcome :)