I'm working on combining quantitative rules (data was Continuous but made Discrete) output by AssociationInducer. For this, I need to get at the boundaries of the intervals that were made by the Discretizer (I am using EqualNDiscretizer at the moment). The question is, if I have a value:

def disc_interval(val): """Given an Orange.data.Value that has been descritized, parses out the interval as (min, max))""" firstchar = val.value[0] if not type(val.variable) == Orange.feature.Discrete: raise Exception("item_bounds can only be computed for discretized values") if val.is_special(): return if firstchar not in '>(<': raise Exception("Could not parse value: "+val)