Browse Source

Changing files names

chabisik 1 year ago
parent
commit
9de43f8a77
6 changed files with 31 additions and 3 deletions
  1. 28
    0
      #main.cpp#
  2. 1
    1
      Makefile
  3. 0
    0
      README.md
  4. 1
    1
      annclasses.cpp
  5. 0
    0
      annclasses.h
  6. 1
    1
      main.cpp

+ 28
- 0
#main.cpp# View File

@@ -0,0 +1,28 @@
1
+#include <iostream>
2
+#include "annclasses.h"
3
+
4
+using namespace std;
5
+
6
+
7
+int main(int argc, char *argv[])
8
+{
9
+    Tools::activate_randomness();
10
+
11
+
12
+    cout << "Bonjour et bienvenu" << endl;
13
+    
14
+    Network network(15, 3);
15
+    network.print();
16
+    cout << endl << endl;
17
+    /*for(int episode=1;episode<=100000;episode++)
18
+    {
19
+        network.forward({1.0,1.0,1.0}, {1.0,2.0,3.0});
20
+        network.backward(0.001);
21
+    }*/
22
+    //network.print();
23
+    cout << endl << endl;
24
+    network.print();
25
+    cout << "verdict : " << network.predict({1.0,1.0,1.0},false) << endl;
26
+
27
+    return 0;
28
+}

+ 1
- 1
Makefile View File

@@ -5,7 +5,7 @@ all : myprogram
5 5
 clean :
6 6
 	rm -f *.o myprogram
7 7
 
8
-myprogram : myclasses.o main.o
8
+myprogram : annclasses.o main.o
9 9
 	g++ -Wall $^ -o myprogram
10 10
 
11 11
 %.o : %.c

+ 0
- 0
README.md View File


myclasses.cpp → annclasses.cpp View File

@@ -3,7 +3,7 @@
3 3
 #include <cmath>
4 4
 #include <forward_list>
5 5
 #include <algorithm>
6
-#include "myclasses.h"
6
+#include "annclasses.h"
7 7
 
8 8
 using namespace std;
9 9
 

myclasses.h → annclasses.h View File


+ 1
- 1
main.cpp View File

@@ -1,5 +1,5 @@
1 1
 #include <iostream>
2
-#include "myclasses.h"
2
+#include "annclasses.h"
3 3
 
4 4
 using namespace std;
5 5
 

Loading…
Cancel
Save