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
c07d80cf
Commit
c07d80cf
authored
5 years ago
by
Tim O'Donnell
Browse files
Options
Downloads
Patches
Plain Diff
fix
parent
aeceaa10
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
.travis.yml
+1
-1
1 addition, 1 deletion
.travis.yml
mhcflurry/train_pan_allele_models_command.py
+2
-0
2 additions, 0 deletions
mhcflurry/train_pan_allele_models_command.py
test/test_train_pan_allele_models_command.py
+3
-3
3 additions, 3 deletions
test/test_train_pan_allele_models_command.py
with
6 additions
and
4 deletions
.travis.yml
+
1
−
1
View file @
c07d80cf
...
...
@@ -43,7 +43,7 @@ env:
-
KERAS_BACKEND=tensorflow
script
:
# download data and models, then run tests
-
mhcflurry-downloads fetch data_curated models_class1 models_class1_pan allele_sequences
random_peptide_predictions
-
mhcflurry-downloads fetch data_curated models_class1 models_class1_pan allele_sequences
-
mhcflurry-downloads info
# just to test this command works
-
nosetests test -sv
-
./lint.sh
This diff is collapsed.
Click to expand it.
mhcflurry/train_pan_allele_models_command.py
+
2
−
0
View file @
c07d80cf
...
...
@@ -655,6 +655,8 @@ def train_model(
# Use a smaller learning rate for training on real data
learning_rate
=
model
.
fit_info
[
-
1
][
"
learning_rate
"
]
model
.
hyperparameters
[
'
learning_rate
'
]
=
learning_rate
/
10
else
:
model
=
Class1NeuralNetwork
(
**
hyperparameters
)
model
.
fit
(
peptides
=
train_peptides
,
...
...
This diff is collapsed.
Click to expand it.
test/test_train_pan_allele_models_command.py
+
3
−
3
View file @
c07d80cf
...
...
@@ -89,7 +89,7 @@ HYPERPARAMETERS_LIST = [
'
random_negative_match_distribution
'
:
True
,
'
random_negative_rate
'
:
0.2
,
'
train_data
'
:
{
"
pretrain
"
:
Tru
e
,
"
pretrain
"
:
Fals
e
,
'
pretrain_peptides_per_epoch
'
:
128
,
'
pretrain_max_epochs
'
:
2
,
'
pretrain_max_val_loss
'
:
0.2
,
...
...
@@ -121,8 +121,8 @@ def run_and_check(n_jobs=0, delete=True, additional_args=[]):
"
--num-jobs
"
,
str
(
n_jobs
),
"
--ensemble-size
"
,
"
2
"
,
"
--verbosity
"
,
"
1
"
,
"
--pretrain-data
"
,
get_path
(
"
random_peptide_predictions
"
,
"
predictions.csv.bz2
"
),
#
"--pretrain-data", get_path(
#
"random_peptide_predictions", "predictions.csv.bz2"),
]
+
additional_args
print
(
"
Running with args: %s
"
%
args
)
subprocess
.
check_call
(
args
)
...
...
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