pytorch-graphsage
pytorch-graphsage copied to clipboard
Running
How do you run train.py for ppi? What file is needed for the argument "--problem-path" so I can run it? Also for reddit because the h5 files are not working for running as well.
There are scripts for converting data here: https://github.com/bkj/pytorch-graphsage/blob/master/utils/run-convert.sh And invocations of train here: https://github.com/bkj/pytorch-graphsage/blob/master/run.sh
You may find this repo helpful: https://github.com/bkj/graphsage-age-prediction That's a boiled down implementation of graphsage w/ instructions on running on a particular dataset.
~ Ben
I am having an issue with running the run-convert.sh. I was having an assertion error with networkx so I updated it and the issue did not go away. I commented out the line causing the error and now I have this issue:
File "convert.py", line 165, in
Is there certain versions of packages I need for this to operate correctly?
Yeah, likely you need an older version of pytorch. I can put a requirements.txt here later. If I don't do it in the next few days ping me here again to remind me
I am making some progress now
Traceback (most recent call last):
File "convert.py", line 202, in
I am getting this error, is this line wanting to check if sparse is in the dictionary? I see prior to this that the dictionary is made with no key "sparse" so I am trying to figure out what you want to do with the line of code.
I am having another issue where the function to_numpy(x) recursively calls itself until my program crashes. I was not having this issue earlier so I am not 100% what is causing it.
That sounds like a pytorch version problem, I think this expectes 0.3.1, but I'll have to double check
Hi,I have the same problem with you.(File "convert.py", line 48, in validate_problem if not problem['sparse']: KeyError: 'sparse') Did you solve this?