summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorkartofen <mladenovnasko0@gmail.com>2022-08-03 18:12:22 +0300
committerkartofen <mladenovnasko0@gmail.com>2022-08-03 18:12:22 +0300
commitc217db79de89fd697e4f46212d312634717353cf (patch)
treed9590b28b5dade3f5c32e9ec46a893420ece2e5a
parentdc23854bf536ff85b6a7980ac452c1646893572e (diff)
minor changes
-rw-r--r--main.c11
1 files changed, 10 insertions, 1 deletions
diff --git a/main.c b/main.c
index 7a1f62e..df976ea 100644
--- a/main.c
+++ b/main.c
@@ -8,7 +8,7 @@
// #define DEBUG
#define CHECK_SEED 69
#define BIAS 20
-#define PASSES 999999
+#define PASSES 99999
#define MIN(x, y) (((x) < (y)) ? (x) : (y))
@@ -111,6 +111,13 @@ int main()
#endif
}
+ for(size_t i = 0; i < PASSES; i++) {
+ train();
+#ifdef DEBUG
+ sleep(5);
+#endif
+ }
+
puts("[INFO] Training completed");
printf("[INFO] Operation took %ld seconds\n", time(0) - cur_time);
@@ -129,7 +136,9 @@ int main()
printf("[INFO] Model success rate is %f%%\n", ((float)correct/PASSES)*100);
printf("[INFO] Operation took %ld seconds\n", time(0) - cur_time);
+#ifdef DEBUG
print_weight();
+#endif
return 0;
}