July 2017
Intermediate to advanced
382 pages
9h 13m
English
We can instantiate our perceptron object similar to other classifiers we encountered with OpenCV:
In [6]: p = Perceptron(lr=0.1, n_iter=10)
Here, we chose a learning rate of 0.1 and told the perceptron to terminate after 10 iterations. These values are chosen rather arbitrarily at this point, although we will come back to them in a little while.
Read now
Unlock full access