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

fix

parent aeceaa10
No related branches found
No related tags found
No related merge requests found
......@@ -43,7 +43,7 @@ env:
- KERAS_BACKEND=tensorflow
script:
# download data and models, then run tests
- mhcflurry-downloads fetch data_curated models_class1 models_class1_pan allele_sequences random_peptide_predictions
- mhcflurry-downloads fetch data_curated models_class1 models_class1_pan allele_sequences
- mhcflurry-downloads info # just to test this command works
- nosetests test -sv
- ./lint.sh
......@@ -655,6 +655,8 @@ def train_model(
# Use a smaller learning rate for training on real data
learning_rate = model.fit_info[-1]["learning_rate"]
model.hyperparameters['learning_rate'] = learning_rate / 10
else:
model = Class1NeuralNetwork(**hyperparameters)
model.fit(
peptides=train_peptides,
......
......@@ -89,7 +89,7 @@ HYPERPARAMETERS_LIST = [
'random_negative_match_distribution': True,
'random_negative_rate': 0.2,
'train_data': {
"pretrain": True,
"pretrain": False,
'pretrain_peptides_per_epoch': 128,
'pretrain_max_epochs': 2,
'pretrain_max_val_loss': 0.2,
......@@ -121,8 +121,8 @@ def run_and_check(n_jobs=0, delete=True, additional_args=[]):
"--num-jobs", str(n_jobs),
"--ensemble-size", "2",
"--verbosity", "1",
"--pretrain-data", get_path(
"random_peptide_predictions", "predictions.csv.bz2"),
# "--pretrain-data", get_path(
# "random_peptide_predictions", "predictions.csv.bz2"),
] + additional_args
print("Running with args: %s" % args)
subprocess.check_call(args)
......
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