GithubHelp home page GithubHelp logo

blackhalo-drake / sagnn-substructure-aware-graph-neural-networks Goto Github PK

View Code? Open in Web Editor NEW
17.0 1.0 2.0 312 KB

Official implementation of SAGNN

License: GNU Lesser General Public License v2.1

Python 100.00%

sagnn-substructure-aware-graph-neural-networks's Issues

BUG

It's wonderful work.
I ran into a bug while reproducing the code, and I didn't find a solution for it. Anyone else has encountered this problem while reproducing the changed code or can the author help?

Traceback (most recent call last):
  File "/home/lugewei/anaconda3/envs/lgw/lib/python3.9/runpy.py", line 197, in _run_module_as_main
    return _run_code(code, main_globals, None,
  File "/home/lugewei/anaconda3/envs/lgw/lib/python3.9/runpy.py", line 87, in _run_code
    exec(code, run_globals)
  File "/home/lugewei/.virtualenvs/untitled2/SAGNN/train/zinc.py", line 100, in <module>
    run(cfg, create_dataset, create_model, train, test)
  File "/home/lugewei/.virtualenvs/untitled2/SAGNN/core/train_helper.py", line 124, in run
    train_dataset, val_dataset, test_dataset = create_dataset(cfg)
  File "/home/lugewei/.virtualenvs/untitled2/SAGNN/train/zinc.py", line 37, in create_dataset
    calculate_stats(train_dataset)
  File "/home/lugewei/.virtualenvs/untitled2/SAGNN/core/utils.py", line 4, in calculate_stats
    ave_num_nodes = np.array([g.num_nodes for g in dataset]).mean()
  File "/home/lugewei/.virtualenvs/untitled2/SAGNN/core/utils.py", line 4, in <listcomp>
    ave_num_nodes = np.array([g.num_nodes for g in dataset]).mean()
AttributeError: 'collections.defaultdict' object has no attribute 'num_nodes'

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.