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

fix

parent f77b708f
No related merge requests found
...@@ -230,22 +230,14 @@ def run(argv=sys.argv[1:]): ...@@ -230,22 +230,14 @@ def run(argv=sys.argv[1:]):
prediction_time / 60.0)) prediction_time / 60.0))
def do_predictions(chunk_index, peptides, alleles, constant_data=GLOBAL_DATA): def do_predictions(chunk_index, peptides, alleles, constant_data=None):
return predict_for_allele( if constant_data is None:
chunk_index, constant_data = GLOBAL_DATA
peptides,
alleles, predictor = constant_data['predictor']
predictor=constant_data['predictor'], verbose = constant_data['args'].get("verbose", False)
**constant_data["args"]) model_kwargs = constant_data['args'].get("model_kwargs", {})
def predict_for_allele(
chunk_index,
peptides,
alleles,
predictor,
verbose=False,
model_kwargs={}):
predictor.optimize(warn=False) # since we loaded with optimization_level=0 predictor.optimize(warn=False) # since we loaded with optimization_level=0
start = time.time() start = time.time()
results = {} 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