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

attempted fix for travis tests

parent 1fb3bce1
No related branches found
No related tags found
No related merge requests found
......@@ -1368,6 +1368,7 @@ class Class1NeuralNetwork(object):
m is the length of the vectors used to represent amino acids
"""
from keras.models import clone_model
import keras.backend as K
reshaped = allele_representations.reshape(
(allele_representations.shape[0], -1))
original_model = self.network()
......
......@@ -90,7 +90,7 @@ def test_inequalities():
hyperparameters = dict(
peptide_amino_acid_encoding="one-hot",
activation="tanh",
layer_sizes=[16],
layer_sizes=[64],
max_epochs=200,
minibatch_size=32,
random_negative_rate=0.0,
......@@ -108,7 +108,7 @@ def test_inequalities():
loss="custom:mse_with_inequalities_and_multiple_outputs")
df = pandas.DataFrame()
df["peptide"] = random_peptides(1000, length=9)
df["peptide"] = random_peptides(100, length=9)
# First half are binders
df["binder"] = df.index < len(df) / 2
......
......@@ -23,7 +23,7 @@ PREDICTORS = {
get_path("models_class1_pan", "models.with_mass_spec"))
}
PREDICTORS["pan-allele"].optimize()
# PREDICTORS["pan-allele"].optimize()
def test_correlation(
......
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