Perceptron subpackage (battelle.perceptron)

Perceptron(weights)

A Perceptron neuron

Perceptron.train(x, y[, learning_rate, nb_iter])

Train Perceptron with dataset of features x and of corresponding labels y using the Perceptron algorithm.

Perceptron.predict(x)

Makes a prediction for features x