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
34c6c7b6
Commit
34c6c7b6
authored
5 years ago
by
Tim O'Donnell
Browse files
Options
Downloads
Patches
Plain Diff
fix
parent
d44622a1
Loading
Loading
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
downloads-generation/data_mass_spec_benchmark/run_mhcflurry.py
+8
-16
8 additions, 16 deletions
...oads-generation/data_mass_spec_benchmark/run_mhcflurry.py
with
8 additions
and
16 deletions
downloads-generation/data_mass_spec_benchmark/run_mhcflurry.py
+
8
−
16
View file @
34c6c7b6
...
...
@@ -230,22 +230,14 @@ def run(argv=sys.argv[1:]):
prediction_time
/
60.0
))
def
do_predictions
(
chunk_index
,
peptides
,
alleles
,
constant_data
=
GLOBAL_DATA
):
return
predict_for_allele
(
chunk_index
,
peptides
,
alleles
,
predictor
=
constant_data
[
'
predictor
'
],
**
constant_data
[
"
args
"
])
def
predict_for_allele
(
chunk_index
,
peptides
,
alleles
,
predictor
,
verbose
=
False
,
model_kwargs
=
{}):
def
do_predictions
(
chunk_index
,
peptides
,
alleles
,
constant_data
=
None
):
if
constant_data
is
None
:
constant_data
=
GLOBAL_DATA
predictor
=
constant_data
[
'
predictor
'
]
verbose
=
constant_data
[
'
args
'
].
get
(
"
verbose
"
,
False
)
model_kwargs
=
constant_data
[
'
args
'
].
get
(
"
model_kwargs
"
,
{})
predictor
.
optimize
(
warn
=
False
)
# since we loaded with optimization_level=0
start
=
time
.
time
()
results
=
{}
...
...
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