(self , w , learn_rate = 0.1 , labels = [1 , -1 ])
liner model
            param:w:predict/train data len:int
liner model
            param:w:predict/train data len:int
liner model param : w : predict / train data len : int
def __init__(self , w , learn_rate = 0.1 , labels = [1 , -1 ]):
        """liner model
            param:w:predict/train data len:int
        """
        self.ratios = [0.] * w 
        self.weight_len = xrange(w)
        self.b = 0 
        self.data_range = xrange(w)
        self.r = learn_rate 
        self.labels = labels
def __init__ ( self , w , learn_rate = 0.1 , labels = [ 1 , - 1 ] ) : self . ratios = [ 0. ] * w self . weight_len = xrange ( w ) self . b = 0 self . data_range = xrange ( w ) self . r = learn_rate self . labels = labels