110 - First percepton with pytorch

Links: notebook, html ., PDF, python, slides ., GitHub

Implement the forward (prediction) and backward (training) algorithm with pytorch.

Note: install tqdm if not installed: !pip install tqdm

torch 0.4.0
((150, 4), (150,))
((112, 4), (112,), (38, 4), (38,))
Last accuracy 0.947
Best accuracy 1.000
Last test loss 0.0655
../_images/110_Perceptron_Iris_9_1.png