Skip to content
Snippets Groups Projects
Commit fe63b6d3 authored by Fize Jacques's avatar Fize Jacques
Browse files

Update parameters theoric

parent eec1b67b
No related branches found
No related tags found
No related merge requests found
...@@ -35,10 +35,10 @@ parameters = { ...@@ -35,10 +35,10 @@ parameters = {
"l": [3,5,8], "l": [3,5,8],
"k": [10,20], "k": [10,20],
"p_in": [0.2,0.5,0.7], "p_in": [0.2,0.5,0.7],
"p_out": [0.1,0.2,0.3] "p_out": [0.1]
}, },
"stochastic_block_model": { "stochastic_block_model": {
"sizes": [[random.choice([10,20,30]) for k in range(i)] for i in [3,5,8,10,12]], "sizes": [[random.choice([10,20,30]) for k in range(i)] for i in [3,5,8]],
"p": [] # Filled later "p": [] # Filled later
}, },
"fast_gnp_random_graph": { "fast_gnp_random_graph": {
...@@ -49,10 +49,10 @@ parameters = { ...@@ -49,10 +49,10 @@ parameters = {
"n": GRAPH_SIZE, "n": GRAPH_SIZE,
"tries":[10000] "tries":[10000]
}, },
"random_geometric_graph": { # "random_geometric_graph": {
"n": GRAPH_SIZE, # "n": GRAPH_SIZE,
"radius": [0.1,0.4,0.6] # "radius": [0.4,0.6]
}, # },
"waxman_graph": { "waxman_graph": {
"n": GRAPH_SIZE, "n": GRAPH_SIZE,
"beta": [0.4,0.6], "beta": [0.4,0.6],
......
...@@ -17,7 +17,7 @@ parser.add_argument("output_filename") ...@@ -17,7 +17,7 @@ parser.add_argument("output_filename")
parser.add_argument("-f", "--format", default="gexf", choices=["gexf", "gml", "txt"]) parser.add_argument("-f", "--format", default="gexf", choices=["gexf", "gml", "txt"])
args = parser.parse_args() args = parser.parse_args()
fns = glob.glob(args.dataset_dir + "/*." + args.format) fns = sorted(glob.glob(args.dataset_dir + "/*." + args.format))
all_res = [] all_res = []
pbar = tqdm(fns) pbar = tqdm(fns)
...@@ -26,7 +26,8 @@ for fn in pbar: ...@@ -26,7 +26,8 @@ for fn in pbar:
continue continue
pbar.set_description("run eval on "+ fn) pbar.set_description("run eval on "+ fn)
command = "python evalNE_script.py {0} -f {1} -n".format(fn, args.format).split() command = "python evalNE_script.py {0} -f {1} -n".format(fn, args.format).split()
output = subprocess.run(command) output = subprocess.run(command,stdout=subprocess.DEVNULL,
stderr=subprocess.STDOUT)
if not output.returncode == 0: if not output.returncode == 0:
print("Error! for the command :", " ".join(command)) print("Error! for the command :", " ".join(command))
continue continue
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment