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

fix

parent d44622a1
No related merge requests found
......@@ -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 = {}
......
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