@classmethod
    def select_feature(cls, instance, attr):
        try:
            val = getattr(instance, attr)
        except __HOLE__:
            try:
                val = getattr(cls, attr)
            except AttributeError:
                raise Exception('Attribute "%s" was not found on either the training instance "%s" or class "%s"' % (attr, instance, cls))

        if callable(val):
            return val(instance)
        else:
            return val
dataset/ETHPy150Open jumoconnect/openjumo/jumodjango/miner/classifiers/classifier.py/Classifier.select_feature