Skip to content
Snippets Groups Projects
Commit 2015dfd6 authored by Tim O'Donnell's avatar Tim O'Donnell
Browse files

fixes

parent 33dd8ee8
No related branches found
No related tags found
No related merge requests found
...@@ -192,4 +192,4 @@ def cross_validation_folds( ...@@ -192,4 +192,4 @@ def cross_validation_folds(
for (result_fold, imputation_result) in zip( for (result_fold, imputation_result) in zip(
result_folds, imputation_results) result_folds, imputation_results)
] ]
return result_fold return result_folds
...@@ -14,6 +14,7 @@ class ParallelBackend(object): ...@@ -14,6 +14,7 @@ class ParallelBackend(object):
self.module = module self.module = module
self.verbose = verbose self.verbose = verbose
class KubefaceParallelBackend(ParallelBackend): class KubefaceParallelBackend(ParallelBackend):
""" """
ParallelBackend that uses kubeface ParallelBackend that uses kubeface
......
...@@ -61,6 +61,7 @@ def test_small_run(): ...@@ -61,6 +61,7 @@ def test_small_run():
"--alleles", "HLA-A0201", "HLA-A0301", "--alleles", "HLA-A0201", "HLA-A0301",
"--verbose", "--verbose",
"--num-local-threads", "1", "--num-local-threads", "1",
"--storage-prefix", "/tmp/",
] ]
print("Running cv_and_train_command with args: %s " % str(args)) print("Running cv_and_train_command with args: %s " % str(args))
......
...@@ -77,7 +77,7 @@ def test_cross_validation_with_imputation(): ...@@ -77,7 +77,7 @@ def test_cross_validation_with_imputation():
n_imputations=2, n_burn_in=1, n_nearest_columns=25) n_imputations=2, n_burn_in=1, n_nearest_columns=25)
train_data = ( train_data = (
mhcflurry.dataset.Dataset.from_csv( mhcflurry.dataset.Dataset.from_csv(
get_path("data_kim2014" , "bdata.2009.mhci.public.1.txt")) get_path("data_kim2014", "bdata.2009.mhci.public.1.txt"))
.get_alleles(["HLA-A0201", "HLA-A0202", "HLA-A0301"])) .get_alleles(["HLA-A0201", "HLA-A0202", "HLA-A0301"]))
folds = cross_validation_folds( folds = cross_validation_folds(
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment