utils/kdd_parser.py
def feature_num2str(self, num_val, index):
        """Given the numerical value and index within the list, convert the feature into a string
        """
        (feature_name, feature_type) = self.schema_key[index]
        if feature_type == 'symbolic':
            try:
                feat_str = self.symbolic_features[feature_name][num_val]
            except IndexError as e:
                print >> sys.stderr, "ERROR: feature_num2str: invalid feature value for symbolic symbol: {}".format(num_val)
                sys.exit(1)
        else:
            feat_str = str(num_val)
        return feat_str
Given the numerical value and index within the list, convert the feature into a string
        
Given the numerical value and index within the list, convert the feature into a string
Given the numerical value and index within the list convert the feature into a string
def feature_num2str(self, num_val, index):
        (feature_name, feature_type) = self.schema_key[index]
        if feature_type == 'symbolic':
            try:
                feat_str = self.symbolic_features[feature_name][num_val]
            except IndexError as e:
                print >> sys.stderr, "ERROR: feature_num2str: invalid feature value for symbolic symbol: {}".format(num_val)
                sys.exit(1)
        else:
            feat_str = str(num_val)
        return feat_str
def feature_num2str ( self , num_val , index ) : ( feature_name , feature_type ) = self . schema_key [ index ] if feature_type == 'symbolic' : try : feat_str = self . symbolic_features [ feature_name ] [ num_val ] except IndexError as e : print >> sys . stderr , "ERROR: feature_num2str: invalid feature value for symbolic symbol: {}" . format ( num_val ) sys . exit ( 1 ) else : feat_str = str ( num_val ) return feat_str
Given the numerical value and index within the list, convert the feature into a string
Given the numerical value and index within the list convert the feature into a string
"""Given the numerical value and index within the list, convert the feature into a string
        """
self
num_val
index