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
a132c1fe
Commit
a132c1fe
authored
4 years ago
by
Fize Jacques
Browse files
Options
Downloads
Patches
Plain Diff
debug
parent
9871e523
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
lib/erosion_model.py
+1
-0
1 addition, 0 deletions
lib/erosion_model.py
lib/link_prediction_eval.py
+1
-1
1 addition, 1 deletion
lib/link_prediction_eval.py
with
2 additions
and
1 deletion
lib/erosion_model.py
+
1
−
0
View file @
a132c1fe
...
...
@@ -43,6 +43,7 @@ class ErosionModel():
old_probs
=
dict
(
self
.
probs_df
[
"
hash_ p_{0}
"
.
format
(
self
.
nb_of_erosion
-
1
).
split
()].
values
)
auc_sbm
,
auc_spatial
=
get_auc_heuristics
(
self
.
H
,
60
)
if
VERBOSE
:
print
(
auc_sbm
,
auc_spatial
)
edges
=
get_all_possible_edges
(
self
.
H
)
if
auc_sbm
>
auc_spatial
:
probs
=
stochastic_block_model
(
self
.
H
,
edges
)
...
...
This diff is collapsed.
Click to expand it.
lib/link_prediction_eval.py
+
1
−
1
View file @
a132c1fe
...
...
@@ -7,7 +7,7 @@ from evalne.utils import preprocess as pp
from
.lambda_func
import
hash_func
def
get_auc_heuristics
(
G
,
timeout
=
60
):
H
,
_
=
pp
.
prep_graph
(
G
.
copy
(),
maincc
=
True
)
H
,
_
=
pp
.
prep_graph
(
G
.
copy
(),
maincc
=
True
,
relabel
=
False
)
traintest_split
=
LPEvalSplit
()
traintest_split
.
compute_splits
(
H
,
split_alg
=
"
spanning_tree
"
,
train_frac
=
0.90
,
fe_ratio
=
1
)
nee
=
LPEvaluator
(
traintest_split
)
...
...
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