Laboratory Work 5
Main.cpp contains implementation of one layer perceptron with only two weights and one bias. Output of executable is steps of perceptron training.
Getopt/getopt_long instructions could be found here.
List of valid keys:
$ git clone git@github.com:BioWar/IO-71-Vorotyntsev-AK-LW5.git
$ cmake ~/IO-71-Vorotyntsev-AK-LW5
$ ./main
$ ./main -h
$ ./main --help
$ ./main --cycles=4
$ ./main --cycles=3 --training-rate=1
$ ./main --cycles=2 --training-rate=2 --target=0,1,1,1
$ ./main -c 2 -l 2 --target=0,1,1,1
$ ./main --cycles=2 -t 0,1,1,1
$ ./main -r --verbose
./main: invalid option -- 'r'
./main: unrecognized option '--verbose'