imoscovitz / wittgenstein

Ruleset covering algorithms for transparent machine learning
MIT License
94 stars 26 forks source link

How to change the format of Cond? #18

Open bpdot opened 2 years ago

bpdot commented 2 years ago

Some conditions look like: A=<-0.5 A=-0.8--0.5 A=-0.8-0.5 A=0.5-0.8

I think it is not easy to read. I want to change the condition in this way: A=<-0.5 => A=(-∞, -0.5) A=-0.8--0.5 => A=(-0.8, -0.5) A=-0.8-0.5 => A=(-0.8, 0.5)
A=0.5-0.8 => A=(0.5, 0.8)

batteryCI commented 2 years ago

You can likely do this from the outpretty method of the Ruleset class. @imoscovitz what I can't seem to figure out is why editing rnd() doesn't allow the xxx.ruleset.out_pretty() to display more than just 1 decimal place. Any quick fix there?