new weights interface and addaption + mall tweaks

This commit is contained in:
2016-02-18 16:36:16 +01:00
parent 19253e975f
commit ec82018ef9
10 changed files with 101 additions and 99 deletions

View File

@@ -6,10 +6,10 @@
int main() {
NeuralNetwork::Recurrent::Network a(2,1,1);
a.getNeurons()[4]->setWeight(*a.getNeurons()[1],0.05);
a.getNeurons()[4]->setWeight(*a.getNeurons()[2],0.05);
a.getNeurons()[4]->setWeight(*a.getNeurons()[3],0.7);
a.getNeurons()[3]->setWeight(*a.getNeurons()[4],0.1);
a.getNeurons()[4]->weight(1)=0.05;
a.getNeurons()[4]->weight(2)=0.05;
a.getNeurons()[4]->weight(3)=0.7;
a.getNeurons()[3]->weight(4)=0.1;
std::vector <float> solutions({0.5,0.5732923,0.6077882,0.6103067,0.6113217,0.6113918,0.61142,0.6114219,0.6114227,0.6114227});