battelle.perceptron.Perceptron

class battelle.perceptron.Perceptron(weights)

A Perceptron neuron

weights

The initial weights of the neuron

Type

array

__init__(weights)

Methods

__init__(weights)

predict(x)

Makes a prediction for features x

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

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

Attributes

weights