TheAlgorithms-C-Plus-Plus/machine_learning/iris.csv
Deep Raval 4a34bec125
feat: Add Neural Network (Multilayer Perceptron) (#1025)
* Completed NN

* Made changes

* Added return in identity function

* Added <random> and fixed namespace naming

* clang-tidy changes

* Update machine_learning/neural_network.cpp

Co-authored-by: David Leal <halfpacho@gmail.com>

* Update machine_learning/neural_network.cpp

Co-authored-by: David Leal <halfpacho@gmail.com>

* Update machine_learning/neural_network.cpp

Co-authored-by: David Leal <halfpacho@gmail.com>

* Update machine_learning/vector_ops.hpp

Co-authored-by: David Leal <halfpacho@gmail.com>

* Update machine_learning/vector_ops.hpp

Co-authored-by: David Leal <halfpacho@gmail.com>

* Update machine_learning/neural_network.cpp

Co-authored-by: David Leal <halfpacho@gmail.com>

* Update machine_learning/neural_network.cpp

Co-authored-by: David Leal <halfpacho@gmail.com>

* added std::cerr and changed argmax's namespace

* Done suggested changes

* Fixed a comment

* clang-tidy fixes

Co-authored-by: David Leal <halfpacho@gmail.com>
2020-08-19 15:25:32 -04:00

2.6 KiB

1https://archive.ics.uci.edu/ml/datasets/iris
2sepal length in cm,sepal width in cm,petal length in cm,petal width in cm
35.1,3.5,1.4,.2,0
44.9,3,1.4,.2,0
54.7,3.2,1.3,.2,0
64.6,3.1,1.5,.2,0
75,3.6,1.4,.2,0
85.4,3.9,1.7,.4,0
94.6,3.4,1.4,.3,0
105,3.4,1.5,.2,0
114.4,2.9,1.4,.2,0
124.9,3.1,1.5,.1,0
135.4,3.7,1.5,.2,0
144.8,3.4,1.6,.2,0
154.8,3,1.4,.1,0
164.3,3,1.1,.1,0
175.8,4,1.2,.2,0
185.7,4.4,1.5,.4,0
195.4,3.9,1.3,.4,0
205.1,3.5,1.4,.3,0
215.7,3.8,1.7,.3,0
225.1,3.8,1.5,.3,0
235.4,3.4,1.7,.2,0
245.1,3.7,1.5,.4,0
254.6,3.6,1,.2,0
265.1,3.3,1.7,.5,0
274.8,3.4,1.9,.2,0
285,3,1.6,.2,0
295,3.4,1.6,.4,0
305.2,3.5,1.5,.2,0
315.2,3.4,1.4,.2,0
324.7,3.2,1.6,.2,0
334.8,3.1,1.6,.2,0
345.4,3.4,1.5,.4,0
355.2,4.1,1.5,.1,0
365.5,4.2,1.4,.2,0
374.9,3.1,1.5,.2,0
385,3.2,1.2,.2,0
395.5,3.5,1.3,.2,0
404.9,3.6,1.4,.1,0
414.4,3,1.3,.2,0
425.1,3.4,1.5,.2,0
435,3.5,1.3,.3,0
444.5,2.3,1.3,.3,0
454.4,3.2,1.3,.2,0
465,3.5,1.6,.6,0
475.1,3.8,1.9,.4,0
484.8,3,1.4,.3,0
495.1,3.8,1.6,.2,0
504.6,3.2,1.4,.2,0
515.3,3.7,1.5,.2,0
525,3.3,1.4,.2,0
537,3.2,4.7,1.4,1
546.4,3.2,4.5,1.5,1
556.9,3.1,4.9,1.5,1
565.5,2.3,4,1.3,1
576.5,2.8,4.6,1.5,1
585.7,2.8,4.5,1.3,1
596.3,3.3,4.7,1.6,1
604.9,2.4,3.3,1,1
616.6,2.9,4.6,1.3,1
625.2,2.7,3.9,1.4,1
635,2,3.5,1,1
645.9,3,4.2,1.5,1
656,2.2,4,1,1
666.1,2.9,4.7,1.4,1
675.6,2.9,3.6,1.3,1
686.7,3.1,4.4,1.4,1
695.6,3,4.5,1.5,1
705.8,2.7,4.1,1,1
716.2,2.2,4.5,1.5,1
725.6,2.5,3.9,1.1,1
735.9,3.2,4.8,1.8,1
746.1,2.8,4,1.3,1
756.3,2.5,4.9,1.5,1
766.1,2.8,4.7,1.2,1
776.4,2.9,4.3,1.3,1
786.6,3,4.4,1.4,1
796.8,2.8,4.8,1.4,1
806.7,3,5,1.7,1
816,2.9,4.5,1.5,1
825.7,2.6,3.5,1,1
835.5,2.4,3.8,1.1,1
845.5,2.4,3.7,1,1
855.8,2.7,3.9,1.2,1
866,2.7,5.1,1.6,1
875.4,3,4.5,1.5,1
886,3.4,4.5,1.6,1
896.7,3.1,4.7,1.5,1
906.3,2.3,4.4,1.3,1
915.6,3,4.1,1.3,1
925.5,2.5,4,1.3,1
935.5,2.6,4.4,1.2,1
946.1,3,4.6,1.4,1
955.8,2.6,4,1.2,1
965,2.3,3.3,1,1
975.6,2.7,4.2,1.3,1
985.7,3,4.2,1.2,1
995.7,2.9,4.2,1.3,1
1006.2,2.9,4.3,1.3,1
1015.1,2.5,3,1.1,1
1025.7,2.8,4.1,1.3,1
1036.3,3.3,6,2.5,2
1045.8,2.7,5.1,1.9,2
1057.1,3,5.9,2.1,2
1066.3,2.9,5.6,1.8,2
1076.5,3,5.8,2.2,2
1087.6,3,6.6,2.1,2
1094.9,2.5,4.5,1.7,2
1107.3,2.9,6.3,1.8,2
1116.7,2.5,5.8,1.8,2
1127.2,3.6,6.1,2.5,2
1136.5,3.2,5.1,2,2
1146.4,2.7,5.3,1.9,2
1156.8,3,5.5,2.1,2
1165.7,2.5,5,2,2
1175.8,2.8,5.1,2.4,2
1186.4,3.2,5.3,2.3,2
1196.5,3,5.5,1.8,2
1207.7,3.8,6.7,2.2,2
1217.7,2.6,6.9,2.3,2
1226,2.2,5,1.5,2
1236.9,3.2,5.7,2.3,2
1245.6,2.8,4.9,2,2
1257.7,2.8,6.7,2,2
1266.3,2.7,4.9,1.8,2
1276.7,3.3,5.7,2.1,2
1287.2,3.2,6,1.8,2
1296.2,2.8,4.8,1.8,2
1306.1,3,4.9,1.8,2
1316.4,2.8,5.6,2.1,2
1327.2,3,5.8,1.6,2
1337.4,2.8,6.1,1.9,2
1347.9,3.8,6.4,2,2
1356.4,2.8,5.6,2.2,2
1366.3,2.8,5.1,1.5,2
1376.1,2.6,5.6,1.4,2
1387.7,3,6.1,2.3,2
1396.3,3.4,5.6,2.4,2
1406.4,3.1,5.5,1.8,2
1416,3,4.8,1.8,2
1426.9,3.1,5.4,2.1,2
1436.7,3.1,5.6,2.4,2
1446.9,3.1,5.1,2.3,2
1455.8,2.7,5.1,1.9,2
1466.8,3.2,5.9,2.3,2
1476.7,3.3,5.7,2.5,2
1486.7,3,5.2,2.3,2
1496.3,2.5,5,1.9,2
1506.5,3,5.2,2,2
1516.2,3.4,5.4,2.3,2
1525.9,3,5.1,1.8,2