GithubHelp home page GithubHelp logo

Comments (3)

wengong-jin avatar wengong-jin commented on August 15, 2024

Hi,

Please use the code in polymer/ directory for polymer generation. The tree decomposition there is different and it will give you bee hives.

from hgraph2graph.

hwidong-na avatar hwidong-na commented on August 15, 2024

Training vae raises the following error.

hgraph2graph/polymers$ python vae_train.py --train train_processed/ --vocab ../data/polymers/inter_vocab.txt --save_dir ckpt/tmp

Model #Params: 5708K
Traceback (most recent call last):
  File "vae_train.py", line 80, in <module>
    loss, kl_div, wacc, iacc, tacc, sacc = model(*batch, beta=beta)
  File "/home/leona/anaconda3/envs/motif/lib/python3.7/site-packages/torch/nn/modules/module.py", line 889, in _call_impl
    result = self.forward(*input, **kwargs)
hgraph2graph/polymers/poly_hgraph/hgnn.py", line 77, in forward
    loss, wacc, iacc, tacc, sacc = self.decoder((root_vecs, root_vecs, root_vecs), graphs, tensors, orders)
  File "/home/leona/anaconda3/envs/motif/lib/python3.7/site-packages/torch/nn/modules/module.py", line 889,
    result = self.forward(*input, **kwargs)
hgraph2graph/polymers/poly_hgraph/decoder.py", line 229, in forward
    clab, ilab = self.vocab[ tree_batch.nodes[yid]['label'] ]
hgraph2graph/polymers/poly_hgraph/vocab.py", line 43, in __getitem__
    return self.hmap[x[0]], self.vmap[x]
KeyError: 'O=C1NC(=O)C2=C3C1=CC=C1C(=O)NC(=O)C(=C13)C=C2'

from hgraph2graph.

hwidong-na avatar hwidong-na commented on August 15, 2024

Solved:
It is required to use the same RDKit version for generating vocab.txt

from hgraph2graph.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.