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

fixes

parent 9788ec5b
No related branches found
No related tags found
No related merge requests found
......@@ -435,6 +435,7 @@ class Class1NeuralNetwork(object):
sample_weights=None,
shuffle_permutation=None,
verbose=1,
progress_callback=None,
progress_preamble="",
progress_print_interval=5.0):
"""
......@@ -739,6 +740,9 @@ class Class1NeuralNetwork(object):
min_val_loss_iteration)).strip())
break
if progress_callback:
progress_callback()
fit_info["time"] = time.time() - start
fit_info["num_points"] = len(peptides)
self.fit_info.append(dict(fit_info))
......@@ -823,7 +827,7 @@ class Class1NeuralNetwork(object):
from keras.layers import Input
import keras.layers
from keras.layers.core import Dense, Flatten, Reshape, Dropout
from keras.layers.core import Dense, Flatten, Dropout
from keras.layers.embeddings import Embedding
from keras.layers.normalization import BatchNormalization
......
......@@ -8,3 +8,4 @@ scikit-learn
mhcnames
pyyaml
tqdm
np_utils
\ No newline at end of file
......@@ -58,6 +58,7 @@ if __name__ == '__main__':
'mhcnames',
'pyyaml',
'tqdm',
'np_utils',
]
if PY2:
# concurrent.futures is a standard library in Py3 but Py2
......
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