diff options
author | kartofen <mladenovnasko0@gmail.com> | 2022-08-03 18:12:22 +0300 |
---|---|---|
committer | kartofen <mladenovnasko0@gmail.com> | 2022-08-03 18:12:22 +0300 |
commit | c217db79de89fd697e4f46212d312634717353cf (patch) | |
tree | d9590b28b5dade3f5c32e9ec46a893420ece2e5a | |
parent | dc23854bf536ff85b6a7980ac452c1646893572e (diff) |
minor changes
-rw-r--r-- | main.c | 11 |
1 files changed, 10 insertions, 1 deletions
@@ -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; } |