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
57c967d2
Commit
57c967d2
authored
3 years ago
by
Fize Jacques
Browse files
Options
Downloads
Patches
Plain Diff
debug$
parent
b50a7ffb
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
eval_mixed_model.py
+3
-0
3 additions, 0 deletions
eval_mixed_model.py
with
3 additions
and
0 deletions
eval_mixed_model.py
+
3
−
0
View file @
57c967d2
...
...
@@ -89,6 +89,9 @@ H = G.copy()
float_epsilon
=
np
.
finfo
(
float
).
eps
df_data
[
"
p_0
"
]
=
df_data
.
apply
(
lambda
x
:
1
if
G
.
has_edge
(
x
.
u
,
x
.
v
)
else
0
,
axis
=
1
)
for
i
in
range
(
1
,
NB_ITERATION
+
1
):
if
H
.
size
()
<
30
:
df_data
[
"
p_{0}
"
.
format
(
i
)]
=
df_data
[
"
p_{0}
"
.
format
(
i
-
1
)]
continue
old_probs
=
dict
(
df_data
[
"
hash_ p_{0}
"
.
format
(
i
-
1
).
split
()].
values
)
auc_sbm
,
auc_spatial
=
get_aucs
(
H
)
if
VERBOSE
:
print
(
"
SBM:
"
,
auc_sbm
,
"
SPATIAL:
"
,
auc_spatial
)
...
...
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