def train_and_perceptron():
    p = Perceptron(2, f)
    (input_vecs, labels) = get_train_dataset()
    p.train(input_vecs, labels, 10, 0.1)
    return p
def train_and_perceptron():
    p = Perceptron(2, f)
    (input_vecs, labels) = get_train_dataset()
    p.train(input_vecs, labels, 10, 0.1)
    return p