Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
M
mhc_rank
Manage
Activity
Members
Labels
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Model registry
Operate
Environments
Terraform modules
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
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Patrick Skillman-Lawrence
mhc_rank
Commits
31751035
Commit
31751035
authored
7 years ago
by
Tim O'Donnell
Browse files
Options
Downloads
Patches
Plain Diff
Reseed the numpy random number generator in each worker
parent
c9e89845
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
downloads-generation/models_class1/generate_hyperparameters.py
+1
-1
1 addition, 1 deletion
...oads-generation/models_class1/generate_hyperparameters.py
mhcflurry/train_allele_specific_models_command.py
+4
-0
4 additions, 0 deletions
mhcflurry/train_allele_specific_models_command.py
with
5 additions
and
1 deletion
downloads-generation/models_class1/generate_hyperparameters.py
+
1
−
1
View file @
31751035
...
...
@@ -64,7 +64,7 @@ base_hyperparameters = {
grid
=
[]
for
train_subset
in
[
"
all
"
,
"
quantitative
"
]:
for
minibatch_size
in
[
32
]:
for
minibatch_size
in
[
128
]:
for
dense_layer_size
in
[
8
,
16
,
32
,
64
]:
for
l1
in
[
0.0
,
0.001
]:
for
num_lc
in
[
0
,
1
,
2
]:
...
...
This diff is collapsed.
Click to expand it.
mhcflurry/train_allele_specific_models_command.py
+
4
−
0
View file @
31751035
...
...
@@ -10,6 +10,7 @@ import traceback
import
random
from
functools
import
partial
import
numpy
import
pandas
import
yaml
from
mhcnames
import
normalize_allele_name
...
...
@@ -472,6 +473,9 @@ def calibrate_percentile_ranks(allele, predictor, peptides=None):
def
worker_init
(
keras_backend
=
None
,
gpu_device_nums
=
None
):
# Each worker needs distinct random numbers
numpy
.
random
.
seed
()
random
.
seed
()
if
keras_backend
or
gpu_device_nums
:
print
(
"
WORKER pid=%d assigned GPU devices: %s
"
%
(
os
.
getpid
(),
gpu_device_nums
))
...
...
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