/perceptron

coding a perceptron from scratch to classify the iris dataset

Primary LanguagePython

Perceptron

Coding a perceptron from scratch to classify the iris dataset. One perceptron uses simple feedback learning and the other uses the pocket algorithm.

About the Data

Iris is a very popular data for classification problems. It requires no cleaning. Each line has 4 features and a label.

Features: Sepal length (cm), Sepal width (cm), Petal length (cm), Petal width (cm)
Labels: Setosa, Versicolour and Virginia

Iris_train.txt has 40 data points. Iris_test.txt has 10 data points.