28 lines
572 B
C++
Executable file
28 lines
572 B
C++
Executable file
#include <iostream>
|
|
#include "annclasses.h"
|
|
|
|
using namespace std;
|
|
|
|
|
|
int main(int argc, char *argv[])
|
|
{
|
|
Tools::activate_randomness();
|
|
|
|
|
|
cout << "Bonjour et bienvenu" << endl;
|
|
|
|
Network network(15, 3);
|
|
network.print();
|
|
cout << endl << endl;
|
|
for(int episode=1;episode<=100000;episode++)
|
|
{
|
|
network.forward({1.0,1.0,1.0}, {1.0,2.0,3.0});
|
|
network.backward(0.001);
|
|
}
|
|
//network.print();
|
|
cout << endl << endl;
|
|
network.print();
|
|
cout << "verdict : " << network.predict({1.0,1.0,1.0},false) << endl;
|
|
|
|
return 0;
|
|
}
|