项目作者: BioWar

项目描述 :
Laboratory Work 5
高级语言: C++
项目地址: git://github.com/BioWar/IO-71-Vorotyntsev-AK-LW5.git
创建时间: 2019-11-13T18:19:26Z
项目社区:https://github.com/BioWar/IO-71-Vorotyntsev-AK-LW5

开源协议:MIT License

下载


AK Laboratory Work 5

Vorotyntsev Petro IO-71

MIT License


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:

  • -h, —help, no arguments required;
  • -c, —cycles, arguments required in range (2, 4);
  • -t, —target, arguments optional list of 4 integers of 0’s and 1’s;
  • -l, —learning-rate, arguments optional, one positive integer, the little the better;

    Commands for assembly

    $ git clone git@github.com:BioWar/IO-71-Vorotyntsev-AK-LW5.git


    $ cmake ~/IO-71-Vorotyntsev-AK-LW5

    Usage examples

    $ ./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

    Handling wrong keys

    $ ./main -r --verbose


    ./main: invalid option -- 'r'


    ./main: unrecognized option '--verbose'