-
Notifications
You must be signed in to change notification settings - Fork 151
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
JTVAE #177
Comments
Hi, what experiment did you want to reproduce? Could you provide things like experiment descriptions, reported results, etc? |
I want to run the exact neural network of the paper. I have some SMILES data (ZINC dataset of the paper). I want to give these smiles data to the neural network (JTVAE) and see the output of the neural network in SMILES. If I see the result is promising, I want to extract and save the embeding of the dataset (I mean I want to store the output of encoder) I tried: Now, I do not know which type of input I should give to the "modelJ" to reach that purpose. I tried the smiles data but it was not successful. I want some hints to reach the first paragraph's purposes. |
If you just want to try the reconstruction part, you can use this file and specify the path to your dataset with |
I have a problem with this too.
or
But I get an error |
Did you write this code snippet yourself or was it from somewhere else? You need to try following this file. |
I followed the example given here. and I am using the link you provided, I will encounter the following errors in Colab:
And when I change
Sorry for the many questions and thank you for answering. |
Sorry the doc is outdated. We'll update it soon. What's your RDKit version? |
RDKit version: 2021.09.5 I also got an error about this link that I left in the previous quote. Is this error also due to outdated the document? |
I don't think so. Could you try downgrading RDKit to 2018.09.3 and see if "KeyError: 'C1=NN=CN1'" still exists? |
Thank you
Thank you I ran this code with lder version of rdkit and I got no errors. Would you please give me a hint to see this autoencoder output? I mean I want to see when I give a SMILES to this network (autoencoder), What is the output of the autoencoder. Usually the output should be the same as the input SMILES but I want to test it myself on this network |
|
Sure thanks. |
You can provide a file with one SMILES string a line to |
Hi in main(args) /usr/local/lib/python3.7/dist-packages/torch/nn/modules/module.py in _call_impl(self, *input, **kwargs) /usr/local/lib/python3.7/dist-packages/dgllife/model/model_zoo/jtvae.py in forward(self, batch_trees, batch_tree_graphs, batch_mol_graphs, stereo_cand_batch_idx, stereo_cand_labels, batch_stereo_cand_graphs, beta) /usr/local/lib/python3.7/dist-packages/torch/nn/modules/module.py in _call_impl(self, *input, **kwargs) /usr/local/lib/python3.7/dist-packages/dgllife/model/model_zoo/jtvae.py in forward(self, tree_graphs, tree_vec) /usr/local/lib/python3.7/dist-packages/dgl/heterograph.py in pull(self, v, message_func, reduce_func, apply_node_func, etype, inplace) /usr/local/lib/python3.7/dist-packages/dgl/utils/checks.py in prepare_tensor(g, data, name) DGLError: Expect argument "v" to have data type torch.int32 and device context cpu. But got torch.int64 and cpu. |
DGLGraphs support two idtypes, int32 or int64. You can change the idtype of a DGLGraph with the APIs here. The node and edge index obtained by methods like |
Hello, thank you for answering the questions. I tried to change the DGL code. Do I have to switch from int64 to int32 everywhere? Or is there an easier solution?
|
Did you change any code? If not, let me have a try myself. |
I didn't change anything here. Thankful |
PR #178 should have fixed the issue. Could you try installing from source and see if there are any further issues? |
thanks, I used the source and the error problem was fixed. But I get the following Warning while running: I do not know if this problem is simply due to how the model uses torch.rnn or something else. |
I observed that too and I think you can simply ignore that. |
Hi!
I want to run "Junction Tree Variational Autoencoder" on the original dataset used in the paper. I want to use the pre-trained model "JTVAE_ZINC_no_kl" but I don't know how exactly I should use this model for that purpose. I had some problems in extracting the results from the model (input parameters). Would you please give me a hint?
The text was updated successfully, but these errors were encountered: