requirement: numpy
- pip install numpy
- goto current directory
- python ./perceptron.py (doesn't matter python2 or python3, I wrote the code compatable with both)
- pip install pytorch ( or follow the instruction in pytorch.org)
- goto current directory
- python ./perceptron_torch.py
All the results are available in file 'result.txt'