battelle.perceptron.Perceptron.train
- Perceptron.train(x, y, learning_rate=0.01, nb_iter=1000)
Train Perceptron with dataset of features x and of corresponding labels y using the Perceptron algorithm.
- Parameters
x (np.array) – A list of features
y (np.array) – The corresponding list of labels.
learning_rate (float) – The learning rate.
nb_iter (int) – The number of learning iterations.