Skip to content

Commit 23c712a

Browse files
committed
Fix typo
1 parent 91947b3 commit 23c712a

File tree

1 file changed

+16
-16
lines changed

1 file changed

+16
-16
lines changed

src/diffupath/cli.py

Lines changed: 16 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -101,15 +101,15 @@ def diffusion():
101101
show_default=True,
102102
)
103103
def run(
104-
input: str,
105-
network: str = KERNEL_PATH,
106-
output: str = OUTPUT_DIR,
107-
method: str = RAW,
108-
binarize: bool = False,
109-
threshold: float = None,
110-
absolute_value: bool = False,
111-
p_value: float = 0.05,
112-
output_format: str = CSV
104+
input: str,
105+
network: str = KERNEL_PATH,
106+
output: str = OUTPUT_DIR,
107+
method: str = RAW,
108+
binarize: bool = False,
109+
threshold: float = None,
110+
absolute_value: bool = False,
111+
p_value: float = 0.05,
112+
output_format: str = CSV
113113
):
114114
"""Run a diffusion method over a network or pre-generated kernel."""
115115
click.secho(f'{EMOJI} Loading graph from {network} {EMOJI}')
@@ -185,12 +185,12 @@ def run(
185185
type=int,
186186
)
187187
def evaluate(
188-
comparison: str = BY_METHOD,
189-
input_path: str = os.path.join(ROOT_RESULTS_DIR, 'data', 'input_mappings'),
190-
graph: str = GRAPH_PATH,
191-
kernel: str = KERNEL_PATH,
192-
output: str = OUTPUT_DIR,
193-
iterations: int = 100,
188+
comparison: str = BY_METHOD,
189+
input_path: str = os.path.join(ROOT_RESULTS_DIR, 'data', 'input_mappings'),
190+
graph: str = GRAPH_PATH,
191+
kernel: str = KERNEL_PATH,
192+
output: str = OUTPUT_DIR,
193+
iterations: int = 100,
194194
):
195195
"""Evaluate a kernel/network on one of the three presented datasets."""
196196
click.secho(f'{EMOJI} Loading network for random cross-validation... {EMOJI}')
@@ -258,7 +258,7 @@ def evaluate(
258258
else:
259259
raise ValueError("The comparison method provided not match any provided method.")
260260

261-
to_json(metrics_by_method, output)
261+
to_json(metrics_by_method, os.path.join(output, 'results.json'))
262262

263263
click.secho(f'{EMOJI} Random cross-validation performed with success. Output located at {output}... {EMOJI}')
264264

0 commit comments

Comments
 (0)