budach / pysster

pysster: Learning Sequence And Structure Motifs In Biological Sequences Using Convolutional Neural Networks

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Replace stand-alone keras with tensorflow.keras

budach opened this issue · comments

Simply replacing all occurrences of from keras with from tensorflow.python.keras works like a charm - no crashes - BUT: the loss on my data sets doesn't improve over time anymore. Other users observe similar behavior (tensorflow/tensorflow#15026, tensorflow/tensorflow#15831).

I will try again with a future tensorflow version. Having one less dependency is always nice.

Note: Losses still don't develop with Tensorflow 1.6

The reason for the differences seems to be that the tensorflow.keras API lags behind stand alone keras API. Not doing it for now.

@budach @fchollet what is your final solution for this important bug.