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

fix

parent 4f3de3ee
No related branches found
No related tags found
No related merge requests found
......@@ -58,8 +58,8 @@ do
--data "$MODELS_DIR/train_data.csv.bz2" \
--models-dir "$MODELS_DIR" \
--out-models-dir models.${kind} \
--min-models 8 \
--max-models 32 \
--min-models 2 \
--max-models 8 \
--num-jobs $NUM_JOBS --max-tasks-per-worker 1 --gpus $GPUS --max-workers-per-gpu 1
cp "$MODELS_DIR/train_data.csv.bz2" "models.${kind}/"
......
......@@ -50,8 +50,8 @@ do
--data "$MODELS_DIR/train_data.csv.bz2" \
--models-dir "$MODELS_DIR" \
--out-models-dir models.${kind} \
--min-models 8 \
--max-models 32 \
--min-models 2 \
--max-models 8 \
--num-jobs 0 \
--num-jobs $NUM_JOBS --max-tasks-per-worker 1 --gpus $GPUS --max-workers-per-gpu 1
......
......@@ -769,9 +769,11 @@ class Class1NeuralNetwork(object):
total_random_peptides_per_length += num_per_length
allele_to_num_per_length[allele] = num_per_length
for _ in random_negative_lengths:
for (allele, num) in allele_to_num_per_length.items():
random_negative_alleles.append([allele] * num)
if allele_encoding is not None:
random_negative_alleles = []
for _ in random_negative_lengths:
for (allele, num) in allele_to_num_per_length.items():
random_negative_alleles.append([allele] * num)
numpy.testing.assert_equal(
len(random_negative_alleles),
......@@ -789,7 +791,8 @@ class Class1NeuralNetwork(object):
total_random_peptides_per_length,
length=length,
distribution=aa_distribution))
# important NOT to shuffle peptides.
# important NOT to shuffle peptides, since they correspond with
# specific alleles.
return EncodableSequences.create(peptides)
else:
raise NotImplementedError(
......
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