From c2b03d9bc052ad8e0ae41aa6c097075c8c17b4d6 Mon Sep 17 00:00:00 2001 From: Fize Jacques <jacques.fize@cirad.fr> Date: Wed, 10 Feb 2021 11:12:11 +0100 Subject: [PATCH] Debug --- run_eval.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/run_eval.py b/run_eval.py index 6567a89..985f55c 100644 --- a/run_eval.py +++ b/run_eval.py @@ -15,6 +15,7 @@ parser = argparse.ArgumentParser() parser.add_argument("dataset_dir") parser.add_argument("output_filename") parser.add_argument("-f", "--format", default="gexf", choices=["gexf", "gml", "txt"]) +parser.add_argument("-t","--train-frac",default=0.9,type=float) args = parser.parse_args() fns = sorted(glob.glob(args.dataset_dir + "/*." + args.format)) @@ -25,7 +26,7 @@ for fn in pbar: pbar.set_description("run eval on "+ fn) if not os.path.exists(fn + "_results_lp"): - command = "python evalNE_script.py {0} -f {1} -n".format(fn, args.format).split() + command = "python evalNE_script.py {0} -f {1} -n --train-frac {2}".format(fn, args.format,args.train_frac).split() output = subprocess.run(command) if not output.returncode == 0: print("Error! for the command :", " ".join(command)) -- GitLab