Code for the homework of Machine Learning Foundation on coursera
https://www.coursera.org/learn/ntumlone-mathematicalfoundations/home/welcome
For Q15-17 in HW1, run:
python PLA_15.py --p trainfile
For Q18-20 in HW2, run:
python PLA_18.py --train trainfile --test testfile