Skip to content

Files

Latest commit

0345e4d · Nov 5, 2013

History

History
This branch is 194 commits behind anton-bannykh/ml-2013:master.

lab-perceptron

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
Nov 5, 2013
Nov 5, 2013
Nov 5, 2013
Nov 5, 2013

Linear perceptron training home assignment

perceptron.py: generic perceptron training algorithm

bcwd.py: BCWD data set related routines

main.py:

  1. downloads the BCWD dataset
  2. splits into training and test set (using the given fraction, 0.10 currently)
  3. runs given number of perceptron training algorithm
  4. calculates the error rate, precision and recall
  5. averages error rate over the given number of iteration and prints it out

Current error rate averaged over 100 runs is about 11 %.

You need python3 and numpy to run the program.

Run as python3 main.py.