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

fix

parent 7f48dc7c
No related merge requests found
......@@ -267,10 +267,10 @@ class ConsensusModelSelector(object):
self.predictor = predictor
self.model_selection_kwargs = model_selection_kwargs
# Run predictions for one allele so self.peptides caches the encoding.
self.predictor.predict(
allele=self.predictor.supported_alleles[0],
peptides=self.peptides)
# Encode the peptides for each neural network, so the encoding
# becomes cached.
for network in predictor.neural_networks:
network.peptides_to_network_input(self.peptides)
def usable_for_allele(self, allele):
return True
......
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