cleaning, prepred calling basis function

This commit is contained in:
2015-08-29 22:08:45 +02:00
parent 9e215751f0
commit 1f431ac27f
5 changed files with 44 additions and 30 deletions

View File

@@ -10,8 +10,8 @@ int main()
srand(time(NULL));
NeuralNetwork::FeedForward ns({1,1});
ns[1][1].setWeight(0,0);
ns[1][1].setWeight(1,1);
ns[1][0].setWeight(-1,0);
ns[1][0].setWeight(0,1);
Shin::Solution ss =ns.solve(Shin::Problem({1}));
@@ -23,17 +23,17 @@ int main()
NeuralNetwork::FeedForward xorF({2,2,1},0.8);
xorF[1][1].setWeight(0,-6.06);
xorF[1][1].setWeight(1,-11.62);
xorF[1][1].setWeight(2,10.99);
xorF[1][0].setWeight(-1,-6.06);
xorF[1][0].setWeight(0,-11.62);
xorF[1][0].setWeight(1,10.99);
xorF[1][2].setWeight(0,-7.19);
xorF[1][2].setWeight(1,12.88);
xorF[1][2].setWeight(2,-13-13);
xorF[1][1].setWeight(-1,-7.19);
xorF[1][1].setWeight(0,12.88);
xorF[1][1].setWeight(1,-13-13);
xorF[2][1].setWeight(0,-6.56);
xorF[2][1].setWeight(1,13.34);
xorF[2][1].setWeight(2,-7.19);
xorF[2][0].setWeight(-1,-6.56);
xorF[2][0].setWeight(0,13.34);
xorF[2][0].setWeight(1,-7.19);
ss= xorF.solve(Shin::Problem({0,1}));