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
fd6fdd75
Commit
fd6fdd75
authored
8 years ago
by
Tim O'Donnell
Browse files
Options
Downloads
Patches
Plain Diff
remove spurious absolute mhcflurry import
parent
8f08993d
Loading
Loading
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
mhcflurry/class1_allele_specific/scoring.py
+2
-3
2 additions, 3 deletions
mhcflurry/class1_allele_specific/scoring.py
mhcflurry/class1_allele_specific/train.py
+1
-3
1 addition, 3 deletions
mhcflurry/class1_allele_specific/train.py
with
3 additions
and
6 deletions
mhcflurry/class1_allele_specific/scoring.py
+
2
−
3
View file @
fd6fdd75
...
...
@@ -7,7 +7,7 @@ import sklearn
import
numpy
import
scipy
import
mhcflurry
from
..regression_target
import
ic50_to_regression_target
def
make_scores
(
...
...
@@ -38,8 +38,7 @@ def make_scores(
dict with entries
"
auc
"
,
"
f1
"
,
"
tau
"
"""
y_pred
=
mhcflurry
.
regression_target
.
ic50_to_regression_target
(
ic50_y_pred
,
max_ic50
)
y_pred
=
ic50_to_regression_target
(
ic50_y_pred
,
max_ic50
)
try
:
auc
=
sklearn
.
metrics
.
roc_auc_score
(
ic50_y
<=
threshold_nm
,
...
...
This diff is collapsed.
Click to expand it.
mhcflurry/class1_allele_specific/train.py
+
1
−
3
View file @
fd6fdd75
...
...
@@ -26,8 +26,6 @@ import math
import
numpy
import
pandas
import
mhcflurry
from
.scoring
import
make_scores
from
.class1_binding_predictor
import
Class1BindingPredictor
from
..hyperparameters
import
HyperparameterDefaults
...
...
@@ -186,7 +184,7 @@ def train_and_test_one_model_one_fold(
impute
,
model_description
))
predictor
=
mhcflurry
.
Class1BindingPredictor
(
predictor
=
Class1BindingPredictor
(
max_ic50
=
max_ic50
,
**
model_params
)
...
...
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