Giter Site home page Giter Site logo

nghiahhnguyen / cs224w-stanford Goto Github PK

View Code? Open in Web Editor NEW
11.0 11.0 4.0 3.04 MB

This is the repository containing the solution of the homework for the CS224W course at Stanford: Machine Learning with Graphs

License: GNU General Public License v3.0

Jupyter Notebook 99.26% Python 0.74%

cs224w-stanford's People

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

cs224w-stanford's Issues

ERROR in GraphSage

hi, When I finish the hw2"GraphSage" ,I meet the same error which is ”TypeError: Required parameter edge_index is empty.“ in your code "hw2-model.py" ,So I wanna get a help from you how to fix it, thanks!

Traceback (most recent call last):
File "/Users/yukino/Documents/DLspace/CS224W/hw2-bundle/q4_starter_code/train.py", line 134, in
main()
File "/Users/yukino/Documents/DLspace/CS224W/hw2-bundle/q4_starter_code/train.py", line 129, in main
train(dataset, task, args)
File "/Users/yukino/Documents/DLspace/CS224W/hw2-bundle/q4_starter_code/train.py", line 78, in train
pred = model(batch)
File "/Users/yukino/anaconda3/lib/python3.7/site-packages/torch/nn/modules/module.py", line 532, in call
result = self.forward(*input, **kwargs)
File "/Users/yukino/Documents/DLspace/CS224W/hw2-bundle/q4_starter_code/models.py", line 51, in forward
x = self.convsi
File "/Users/yukino/anaconda3/lib/python3.7/site-packages/torch/nn/modules/module.py", line 532, in call
result = self.forward(*input, **kwargs)
File "/Users/yukino/Documents/DLspace/CS224W/hw2-bundle/q4_starter_code/models.py", line 107, in forward
return self.propagate(edge_index, size=(num_nodes, num_nodes), x=out)
File "/Users/yukino/anaconda3/lib/python3.7/site-packages/torch_geometric/nn/conv/message_passing.py", line 257, in propagate
msg_kwargs = self.distribute(self.msg_params, kwargs)
File "/Users/yukino/anaconda3/lib/python3.7/site-packages/torch_geometric/nn/conv/message_passing.py", line 180, in distribute
raise TypeError(f'Required parameter {key} is empty.')
TypeError: Required parameter edge_index is empty.

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.