Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
L
linkprediction_depo
Manage
Activity
Members
Labels
Plan
Issues
0
Issue boards
Milestones
Wiki
Code
Merge requests
0
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Jacques Fize
linkprediction_depo
Commits
c2b03d9b
Commit
c2b03d9b
authored
4 years ago
by
Fize Jacques
Browse files
Options
Downloads
Patches
Plain Diff
Debug
parent
f5f22683
No related branches found
Branches containing commit
No related tags found
Loading
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
run_eval.py
+2
-1
2 additions, 1 deletion
run_eval.py
with
2 additions
and
1 deletion
run_eval.py
+
2
−
1
View file @
c2b03d9b
...
...
@@ -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
))
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment