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
8df1eb5e
Commit
8df1eb5e
authored
5 years ago
by
Tim O'Donnell
Browse files
Options
Downloads
Patches
Plain Diff
fix tests
parent
a6cd5022
Loading
Loading
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
mhcflurry/class1_ligandome_predictor.py
+1
-1
1 addition, 1 deletion
mhcflurry/class1_ligandome_predictor.py
test/test_network_merging.py
+0
-1
0 additions, 1 deletion
test/test_network_merging.py
test/test_speed.py
+4
-4
4 additions, 4 deletions
test/test_speed.py
with
5 additions
and
6 deletions
mhcflurry/class1_ligandome_predictor.py
+
1
−
1
View file @
8df1eb5e
...
...
@@ -150,7 +150,7 @@ class Class1LigandomePredictor(object):
return
network
@staticmethod
def
loss
(
y_true
,
y_pred
,
delta
=
0.2
,
alpha
=
None
):
def
loss
(
y_true
,
y_pred
,
sample_weight
=
None
,
delta
=
0.2
,
alpha
=
None
):
"""
Loss function for ligandome prediction.
"""
...
...
This diff is collapsed.
Click to expand it.
test/test_network_merging.py
+
0
−
1
View file @
8df1eb5e
...
...
@@ -10,7 +10,6 @@ from mhcflurry.downloads import get_path
from
mhcflurry.testing_utils
import
cleanup
,
startup
PAN_ALLELE_PREDICTOR
=
None
...
...
This diff is collapsed.
Click to expand it.
test/test_speed.py
+
4
−
4
View file @
8df1eb5e
...
...
@@ -22,11 +22,11 @@ from mhcflurry.testing_utils import cleanup, startup
ALLELE_SPECIFIC_PREDICTOR
=
None
PAN_ALLELE_PREDICTOR
_NO_MASS_SPEC
=
None
PAN_ALLELE_PREDICTOR
=
None
def
setup
():
global
ALLELE_SPECIFIC_PREDICTOR
,
PAN_ALLELE_PREDICTOR
_NO_MASS_SPEC
global
ALLELE_SPECIFIC_PREDICTOR
,
PAN_ALLELE_PREDICTOR
startup
()
ALLELE_SPECIFIC_PREDICTOR
=
Class1AffinityPredictor
.
load
(
get_path
(
"
models_class1
"
,
"
models
"
))
...
...
@@ -36,7 +36,7 @@ def setup():
def
teardown
():
global
ALLELE_SPECIFIC_PREDICTOR
,
PAN_ALLELE_PREDICTOR
_NO_MASS_SPEC
global
ALLELE_SPECIFIC_PREDICTOR
,
PAN_ALLELE_PREDICTOR
ALLELE_SPECIFIC_PREDICTOR
=
None
PAN_ALLELE_PREDICTOR
=
None
cleanup
()
...
...
@@ -97,7 +97,7 @@ def test_speed_allele_specific(profile=False, num=DEFAULT_NUM_PREDICTIONS):
def
test_speed_pan_allele
(
profile
=
False
,
num
=
DEFAULT_NUM_PREDICTIONS
):
global
PAN_ALLELE_PREDICTOR
_NO_MASS_SPEC
global
PAN_ALLELE_PREDICTOR
starts
=
collections
.
OrderedDict
()
timings
=
collections
.
OrderedDict
()
profilers
=
collections
.
OrderedDict
()
...
...
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