Changing files names
This commit is contained in:
parent
87cd5cfe46
commit
9de43f8a77
6 changed files with 31 additions and 3 deletions
28
#main.cpp#
Executable file
28
#main.cpp#
Executable file
|
@ -0,0 +1,28 @@
|
|||
#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;
|
||||
}
|
2
Makefile
Normal file → Executable file
2
Makefile
Normal file → Executable file
|
@ -5,7 +5,7 @@ all : myprogram
|
|||
clean :
|
||||
rm -f *.o myprogram
|
||||
|
||||
myprogram : myclasses.o main.o
|
||||
myprogram : annclasses.o main.o
|
||||
g++ -Wall $^ -o myprogram
|
||||
|
||||
%.o : %.c
|
||||
|
|
0
README.md
Normal file → Executable file
0
README.md
Normal file → Executable file
2
myclasses.cpp → annclasses.cpp
Normal file → Executable file
2
myclasses.cpp → annclasses.cpp
Normal file → Executable file
|
@ -3,7 +3,7 @@
|
|||
#include <cmath>
|
||||
#include <forward_list>
|
||||
#include <algorithm>
|
||||
#include "myclasses.h"
|
||||
#include "annclasses.h"
|
||||
|
||||
using namespace std;
|
||||
|
0
myclasses.h → annclasses.h
Normal file → Executable file
0
myclasses.h → annclasses.h
Normal file → Executable file
2
main.cpp
Normal file → Executable file
2
main.cpp
Normal file → Executable file
|
@ -1,5 +1,5 @@
|
|||
#include <iostream>
|
||||
#include "myclasses.h"
|
||||
#include "annclasses.h"
|
||||
|
||||
using namespace std;
|
||||
|
||||
|
|
Loading…
Reference in a new issue