cppbasedann/main.cpp

25 lines
487 B
C++
Raw Normal View History

2022-01-01 17:28:20 +01:00
#include <iostream>
2022-01-18 13:03:53 +01:00
#include "annclasses.h"
2022-01-01 17:28:20 +01:00
using namespace std;
2022-01-01 17:28:20 +01:00
int main(int argc, char *argv[])
{
Tools::activate_randomness();
cout << "Bonjour et bienvenu" << endl;
Network network(15, 3);
network.print();
cout << endl << endl;
network.train({1.0,1.0,1.0}, {1.0,2.0,3.0}, 0.001, 100000);
//network.print();
cout << endl << endl;
network.print();
cout << "verdict : " << network.predict({1.0,1.0,1.0},false) << endl;
return 0;
2022-01-01 17:28:20 +01:00
}