(self, data)
对输入的数据进行打分
            params
                data            输入数据，输入类型为list
            return
                value           cart树返回数值
            raise 
                Exception
对输入的数据进行打分
            params
                data            输入数据，输入类型为list
            return
                value           cart树返回数值
            raise 
                Exception
对输入的数据进行打分 params data 输入数据，输入类型为list return value cart树返回数值 raise Exception
def classify(self, data):
        """对输入的数据进行打分
            params
                data            输入数据，输入类型为list
            return
                value           cart树返回数值
            raise 
                Exception
        """
        if data and isinstance(data , (list,tuple)) and  len(data) and len(self.attrs): 
            return self._classify(copy.copy(data), self.attrs , self.tree)
        else:
            raise ValueError,"data is list , eg [0  , 1 ,3 ...] ; data length is equal train attrs"
def classify ( self , data ) : if data and isinstance ( data , ( list , tuple ) ) and len ( data ) and len ( self . attrs ) : return self . _classify ( copy . copy ( data ) , self . attrs , self . tree ) else : raise ValueError , "data is list , eg [0  , 1 ,3 ...] ; data length is equal train attrs"