cppbasedann/main.cpp

34 lines
699 B
C++
Raw Normal View History

2022-01-01 17:28:20 +01:00
#include <iostream>
#include <forward_list>
//#include <cmath>
#include "myclasses.h"
#include <vector>
2022-01-09 14:56:35 +01:00
#include <iterator>
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;
2022-01-02 02:33:35 +01:00
/*Neuron n0(3,SIGMOID);
Neuron n1(3,RELU);n1.set_output(1.0);
Neuron n2(3,RELU);n2.set_output(2.0);
Neuron n3(3,RELU);n3.set_output(-3.0);
forward_list<Neuron> fl;
fl.push_front(n1);fl.push_front(n2);fl.push_front(n3);
forward_list<Neuron>::iterator it(fl.begin());
2022-01-01 17:28:20 +01:00
n0.activate(it);
2022-01-02 02:33:35 +01:00
cout << "is = " << n0.get_output() << endl;*/
2022-01-09 14:56:35 +01:00
Network network(4, 5);
network.print();
return 0;
2022-01-01 17:28:20 +01:00
}