def _update_weight(self, input_vec, output, label, rate):
    delat = (label - output)
    self.weights += ((rate * delat) * input_vec)
    self.bias += (rate * delat)
def _update_weight(self, input_vec, output, label, rate):
    delat = (label - output)
    self.weights += ((rate * delat) * input_vec)
    self.bias += (rate * delat)