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
e7b34afb
Commit
e7b34afb
authored
8 years ago
by
Alex Rubinsteyn
Browse files
Options
Downloads
Patches
Plain Diff
small fix to training script
parent
552af789
Loading
Loading
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
script/mhcflurry-train-class1-allele-specific-models.py
+2
-7
2 additions, 7 deletions
script/mhcflurry-train-class1-allele-specific-models.py
test/test_neural_nets.py
+2
-2
2 additions, 2 deletions
test/test_neural_nets.py
with
4 additions
and
9 deletions
script/mhcflurry-train-class1-allele-specific-models.py
+
2
−
7
View file @
e7b34afb
...
...
@@ -46,13 +46,8 @@ from keras.optimizers import RMSprop
from
mhcflurry.common
import
normalize_allele_name
from
mhcflurry.data
import
load_allele_datasets
from
mhcflurry.class1_binding_predictor
import
Class1BindingPredictor
from
mhcflurry.class1_allele_specific_hyperparameters
import
(
add_hyperparameter_arguments_to_parser
)
from
mhcflurry.paths
import
(
CLASS1_MODEL_DIRECTORY
,
CLASS1_DATA_DIRECTORY
)
from
mhcflurry.feedforward_hyperparameters
import
add_hyperparameter_arguments_to_parser
from
mhcflurry.paths
import
(
CLASS1_MODEL_DIRECTORY
,
CLASS1_DATA_DIRECTORY
)
from
mhcflurry.imputation
import
create_imputed_datasets
,
imputer_from_name
CSV_FILENAME
=
"
combined_human_class1_dataset.csv
"
...
...
This diff is collapsed.
Click to expand it.
test/test_neural_nets.py
+
2
−
2
View file @
e7b34afb
...
...
@@ -17,7 +17,7 @@ def test_make_embedding_network_properties():
optimizer
=
RMSprop
(
lr
=
0.7
,
rho
=
0.9
,
epsilon
=
1e-6
))
eq_
(
nn
.
layers
[
0
].
input_dim
,
3
)
eq_
(
nn
.
loss
,
mse
)
eq_
(
nn
.
optimizer
.
lr
,
0.7
)
eq_
(
nn
.
optimizer
.
lr
.
eval
()
,
0.7
)
print
(
nn
.
layers
)
# embedding + flatten + (dense->activation) * hidden layers and last layer
eq_
(
len
(
nn
.
layers
),
2
+
2
*
(
1
+
len
(
layer_sizes
)))
...
...
@@ -34,7 +34,7 @@ def test_make_hotshot_network_properties():
optimizer
=
RMSprop
(
lr
=
0.7
,
rho
=
0.9
,
epsilon
=
1e-6
))
eq_
(
nn
.
layers
[
0
].
input_dim
,
6
)
eq_
(
nn
.
loss
,
mse
)
eq_
(
nn
.
optimizer
.
lr
,
0.7
)
eq_
(
nn
.
optimizer
.
lr
.
eval
()
,
0.7
)
print
(
nn
.
layers
)
eq_
(
len
(
nn
.
layers
),
2
+
2
*
(
1
+
len
(
layer_sizes
)))
...
...
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