1234567891011121314151617181920212223242526272829303132 |
- #include <iostream>
- #include "annclasses.h"
-
- using namespace std;
-
-
- int main(int argc, char *argv[])
- {
- Tools::activate_randomness();
-
-
- cout << "Bonjour et bienvenu" << endl;
-
- Network network(2, 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();*/
- network.train({{1.0,1.0,1.0},{2.0,1.0,1.0}}, {{1.0,2.0,3.0},{1.0,2.0,6.0}}, 0.001, 1000000, 1);
- cout << "Network has " << network.get_neurons_number() << " neurons" << endl;
- for(auto e : network.predict({{1.0,1.0,1.0},{2.0,1.0,1.0}},true))
- {
- cout << e << " " << endl;
- }
-
- //vector<vector<float>> v(5);
- //cout << v.at(0).size() << endl;
-
- return 0;
- }
|