From 4f3de3ee0a6d5ba5b5206f2ecda84d943fa4e2d4 Mon Sep 17 00:00:00 2001 From: Tim O'Donnell <timodonnell@gmail.com> Date: Mon, 16 Sep 2019 14:58:07 -0400 Subject: [PATCH] fix --- mhcflurry/class1_neural_network.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mhcflurry/class1_neural_network.py b/mhcflurry/class1_neural_network.py index 22d1637c..dd367a33 100644 --- a/mhcflurry/class1_neural_network.py +++ b/mhcflurry/class1_neural_network.py @@ -796,7 +796,7 @@ class Class1NeuralNetwork(object): self.hyperparameters["random_negative_method"]) random_negative_allele_encoding = None - if random_negative_alleles: + if random_negative_alleles is not None: random_negative_allele_encoding = AlleleEncoding( random_negative_alleles, borrow_from=allele_encoding) -- GitLab