jacobian

Unnamed repository; edit this file 'description' to name the repository.
Log | Files | Refs | README

commit 54eb5eb8503f3dc3c5b5902fe159e173f065979c
parent 127b1d82c9bdc3792ada3a77df60963f4a1458ad
Author: David Freifeld <freifeld.david@gmail.com>
Date:   Sun, 21 Jun 2020 15:40:41 -0700

Quick fix

Diffstat:
Mmr_bpnn_2.cpp | 12+++++++-----
1 file changed, 7 insertions(+), 5 deletions(-)

diff --git a/mr_bpnn_2.cpp b/mr_bpnn_2.cpp @@ -3,9 +3,11 @@ struct pair* map (struct pair input_pair) { char* path = new char[100]; - path = (char*)input_pair.key; - int linecount = prep_file(path, "./shuffled.txt"); - Network* net = new Network (path, 4, 2, 1, 5, 10, 1); + strcpy(path, (char*)input_pair.key); + strcat(path, "_shuf"); + printf("%s and %s\n", path, (char*)input_pair.key); + int linecount = prep_file((char*)input_pair.key, path); + Network* net = new Network (path, 4, 2, 1, 5, 10, 2); auto begin = std::chrono::high_resolution_clock::now(); // std::cout << "\n\n\n"; float epoch_cost = 1000; @@ -104,8 +106,8 @@ void translate(char* path) int main(int argc, char** argv) { auto prog_begin = std::chrono::high_resolution_clock::now(); - //begin(argv[2], map, reduce, translate, strtol(argv[1], NULL, 10), 1, argv[3], strtol(argv[4], NULL, 10)); - demo(50); + prep_file(argv[2], "./shuffled"); + begin("./shuffled", map, reduce, translate, strtol(argv[1], NULL, 10), 1, argv[3], strtol(argv[4], NULL, 10)); auto prog_end = std::chrono::high_resolution_clock::now(); std::cout << "Time: " << std::chrono::duration_cast<std::chrono::nanoseconds>(prog_end-prog_begin).count() / pow(10,9) << "\n";