def train(self, input_vecs, labels, iteration, rate):
    for _ in range(iteration):
        self._one_iteration(input_vecs, labels, rate)
def train(self, input_vecs, labels, iteration, rate):
    for _ in range(iteration):
        self._one_iteration(input_vecs, labels, rate)