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

Use SparseTensors in preprocessing #8

Open tivaro opened 7 years ago

tivaro commented 7 years ago

The SparseTensors implemented in NGF/sparse.py are very well suited for the molecule data structures/distributions used in these repo. An advantage of the SparseTensors tensors is that they do not require padding.

It would be easy to implement an append or an extend method to merge the tensors. This would significantly speed up the preprocessing for larger datasets, and obsolete the padaxis and concat_mol_tensors functions.