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
f17269dd
Commit
f17269dd
authored
9 years ago
by
Alex Rubinsteyn
Browse files
Options
Downloads
Patches
Plain Diff
only clamp if no normalization
parent
729437a1
Loading
Loading
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
experiments/matrix-completion-accuracy.py
+21
-21
21 additions, 21 deletions
experiments/matrix-completion-accuracy.py
with
21 additions
and
21 deletions
experiments/matrix-completion-accuracy.py
+
21
−
21
View file @
f17269dd
...
...
@@ -128,27 +128,6 @@ def evaluate_predictions(
VERBOSE
=
False
imputation_methods
=
{
"
softImpute
"
:
SoftImpute
(
verbose
=
VERBOSE
),
"
svdImpute-5
"
:
IterativeSVD
(
5
,
verbose
=
VERBOSE
),
"
svdImpute-10
"
:
IterativeSVD
(
10
,
verbose
=
VERBOSE
),
"
svdImpute-20
"
:
IterativeSVD
(
20
,
verbose
=
VERBOSE
),
"
similarityWeightedAveraging
"
:
SimilarityWeightedAveraging
(
orientation
=
"
columns
"
,
verbose
=
VERBOSE
),
"
meanFill
"
:
SimpleFill
(
"
mean
"
),
"
zeroFill
"
:
SimpleFill
(
"
zero
"
),
"
MICE
"
:
MICE
(
n_burn_in
=
5
,
n_imputations
=
20
,
min_value
=
0
,
max_value
=
1
,
verbose
=
VERBOSE
),
"
knnImpute-3
"
:
KNN
(
3
,
orientation
=
"
columns
"
,
verbose
=
VERBOSE
,
print_interval
=
1
),
"
knnImpute-7
"
:
KNN
(
7
,
orientation
=
"
columns
"
,
verbose
=
VERBOSE
,
print_interval
=
1
),
"
knnImpute-15
"
:
KNN
(
15
,
orientation
=
"
columns
"
,
verbose
=
VERBOSE
,
print_interval
=
1
),
}
class
ScoreSet
(
object
):
"""
...
...
@@ -213,6 +192,27 @@ if __name__ == "__main__":
args
=
parser
.
parse_args
()
print
(
args
)
imputation_methods
=
{
"
softImpute
"
:
SoftImpute
(
verbose
=
VERBOSE
),
"
svdImpute-5
"
:
IterativeSVD
(
5
,
verbose
=
VERBOSE
),
"
svdImpute-10
"
:
IterativeSVD
(
10
,
verbose
=
VERBOSE
),
"
svdImpute-20
"
:
IterativeSVD
(
20
,
verbose
=
VERBOSE
),
"
similarityWeightedAveraging
"
:
SimilarityWeightedAveraging
(
orientation
=
"
columns
"
,
verbose
=
VERBOSE
),
"
meanFill
"
:
SimpleFill
(
"
mean
"
),
"
zeroFill
"
:
SimpleFill
(
"
zero
"
),
"
MICE
"
:
MICE
(
n_burn_in
=
5
,
n_imputations
=
20
,
min_value
=
None
if
args
.
normalize_rows
or
args
.
normalize_columns
else
0
,
max_value
=
None
if
args
.
normalize_rows
or
args
.
normalize_columns
else
1
,
verbose
=
VERBOSE
),
"
knnImpute-3
"
:
KNN
(
3
,
orientation
=
"
columns
"
,
verbose
=
VERBOSE
,
print_interval
=
1
),
"
knnImpute-7
"
:
KNN
(
7
,
orientation
=
"
columns
"
,
verbose
=
VERBOSE
,
print_interval
=
1
),
"
knnImpute-15
"
:
KNN
(
15
,
orientation
=
"
columns
"
,
verbose
=
VERBOSE
,
print_interval
=
1
),
}
allele_to_peptide_to_affinity
=
load_allele_dicts
(
args
.
binding_data_csv
,
max_ic50
=
args
.
max_ic50
,
...
...
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