Skip to content

victorqribeiro/perceptronCobol

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Perceptron in COBOL

A perceptron written in COBOL.

About

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.

How to install Cobol

sudo apt install open-cobol

How to compile

cobc -x perceptron.cbl

How to use

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


donate

Releases

No releases published

Sponsor this project

Packages

No packages published

Languages