aspuru-guzik-group / chemical_vae

Code for 10.1021/acscentsci.7b00572, now running on Keras 2.0 and Tensorflow
Apache License 2.0
470 stars 178 forks source link

vae_utils #13

Open Martinmejia opened 5 years ago

Martinmejia commented 5 years ago

The function called estimate_estandarization(self) has an issue because it encounters a nan or empty smiles and stop. This can be removed temporary using the following try: try: sub_smiles = [smiles[i] for i in chunk] one_hot = self.smiles_to_hot(sub_smiles) Z[chunk, :] = self.encode(one_hot, False) except ValueError: print(len(sub_smiles)) print(sub_smiles) print(one_hot.shape)