keiserlab / keras-neural-graph-fingerprint

Keras implementation of Neural Graph Fingerprints as proposed by Duvenaud et al., 2015
MIT License
46 stars 24 forks source link

Make compatible with Keras 2 #12

Open LimKaiZhuo opened 6 years ago

LimKaiZhuo commented 6 years ago

There are quite a few issues when using your code with Keras 2. For example, the customised Keras layers does not work and gives the following issue: File "C:\Users\User\Desktop\Python\SNN_cont_only\own_package\NGF\layers.py", line 397, in init super(NeuralGraphOutput, self).init(**kwargs) File "C:\Program Files (x86)\Python36-64\lib\site-packages\keras\engine\base_layer.py", line 128, in init raise TypeError('Keyword argument not understood:', kwarg) TypeError: ('Keyword argument not understood:', 'activation')

tivaro commented 5 years ago

Hi @LimKaiZhuo,

I haven't looked at this codebase in a while, but it seems that this fork contains a version that was modified by @iwatobipen to work for keras2 and tensorflow.

tivaro commented 5 years ago

@tevang

tevang commented 5 years ago

I tried @iwatobipen 's fork and I can verify that it works with Python 3.7.3, Keras-2.2.4, TensorFlow 1.13.1 (Theano is not needed any more). I have spent the last 3 days adapting the code to work with these latest versions, but it needed much more modifications than I expected. Thank you for pointing that fork out. I would like to become a co-developer and add a user-friendly API that will allow someone who is not an expert to use default network architectures and retrieve the molecules in feature vector form, suitable for training of any ML model.