Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Carlos GO
RNAmigos_GCN
Commits
905059c1
Commit
905059c1
authored
Jan 13, 2020
by
Carlos GO
Browse files
learning early stop
parent
205c394e
Changes
2
Hide whitespace changes
Inline
Side-by-side
learning/learning.py
View file @
905059c1
...
...
@@ -146,7 +146,7 @@ def train_model(model, criterion, optimizer, device, train_loader, test_loader,
"""
epochs_from_best
=
0
early_stop_threshold
=
8
0
early_stop_threshold
=
1
0
start_time
=
time
.
time
()
best_loss
=
sys
.
maxsize
...
...
post/validation.py
View file @
905059c1
...
...
@@ -123,7 +123,7 @@ def ablation_results():
graph_ids
=
pickle
.
load
(
open
(
f
'../results/
{
run
}
/splits.p'
,
'rb'
))
acc
,
ranks_this
=
decoy_test
(
model
,
decoys
,
edge_map
,
32
,
test_graphlist
=
graph_ids
[
't
est
'
],
test_graphlist
=
graph_ids
[
't
rain
'
],
test_graph_path
=
graph_dir
,
shuffle
=
shuffle
)
ranks
.
extend
(
ranks_this
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment