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

update

parent ebc915a6
No related branches found
No related tags found
No related merge requests found
......@@ -37,7 +37,8 @@ time mhcflurry-class1-train-allele-specific-models \
--out-models-dir models \
--percent-rank-calibration-num-peptides-per-length 1000000 \
--min-measurements-per-allele 75 \
--parallelization-num-jobs 0
--train-num-jobs 0 \
--calibration-num-jobs 4
cp $SCRIPT_ABSOLUTE_PATH .
bzip2 LOG.txt
......
......@@ -933,11 +933,6 @@ class Class1AffinityPredictor(object):
if worker_pool and len(alleles) > 1:
# Run in parallel
# Performance hack.
for network in self.neural_networks:
network.peptides_to_network_input(encoded_peptides)
do_work = partial(
_calibrate_percentile_ranks,
predictor=self,
......@@ -969,13 +964,14 @@ def _calibrate_percentile_ranks(alleles, predictor, peptides, bins):
Parameters
----------
alleles
predictor
peptides
bins
alleles : list of string
predictor : Class1AffinityPredictor
peptides : list of string or EncodableSequences
bins : object
Returns
-------
dict : allele -> percentile rank transform
"""
result = {}
......
......@@ -85,7 +85,15 @@ parser.add_argument(
help="Keras verbosity. Default: %(default)s",
default=0)
parser.add_argument(
"--parallelization-num-jobs",
"--train-num-jobs",
default=1,
type=int,
metavar="N",
help="Parallelization jobs. Experimental. "
"Set to 1 for serial run. Set to 0 to use number of cores. "
"Default: %(default)s.")
parser.add_argument(
"--calibration-num-jobs",
default=1,
type=int,
metavar="N",
......
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