A perceptron written in COBOL.
I've been reading a lot about companies seeking COBOL programmers, so I decided to give it a shot and wrote a perceptron to classify the Iris dataset.
sudo apt install open-cobol
cobc -x perceptron.cbl
Run the program
./perceptron
Then enter 4 values (one at at time).
You can use 5.8 2.5 5.2 1.4 for testing purpose. The result should be one (Iris-versicolor).
On DATA.DAT there's a 5 colum by 100 rows table.
The first 4 colums are features that describe a flower.
The 5th colum is the flower's label.
0 = Iris-setosa
1 = Iris-versicolor