-
Notifications
You must be signed in to change notification settings - Fork 12
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
reshape error #3
Comments
Hello, can I have more details : which dataset are you using ? How do you load the data ? |
Thanks for your reply! And sorry for not replying in time! |
Ok, I don't think this is the problem for I already used for such graphs (ex protein/enzymes dataset), I further investigate and come back to you |
I think I found the error : the dimension of the vector attributes of your graphs is not fixed, some are 100 dimensional others are not. For PSCN to work you must have the same dimension for all your attributes. I pushed a new version where an error is raised when this problem occurs, so if you get a BadAttriDimError then some of your attributes are not 100 dimensional. Moreover you should also define a "dummy_value" that is also a 100 dimensional vector (in the original paper this is a trick when the receptive field size is higher than the size of some graph, maybe this is the case for you..). For example by setting the option dummy_value=np.repeat(0,100) in PSCN. I added an example with the BZR dataset in train_example. Tell me if this fixed your error |
Thank you for your help.
The correct length of x, y, z should be 25, 3, 100. But sometimes the length value of x is 2.This is also the cause of the problem, but I don't know how to modify the code. |
Hello Did you check that all your node features are 100 dimensional ? Did you tried to run the code with the last version of yesterday, what error do you get ? Also dummy_value should be set when instantiate PSCN not inside pscn.py (see example in notebook) |
Yes, I'm sure all my node features are 100 dimensional. Then I will run your newly released code and come back to you. |
You're right. I found my mistake through your latest code. I apologize for my behavior of drawing conclusions without running the code. And thank you again for your help! |
Hi,
Thanks for your great work! And I set :
PSCN(w=25,k=3,epochs=10,batch_size=32,verbose=2,attr_dim=100)
but I got an issue as follow:
I tried to solve this problem, but it was unsuccessful. Could you help me?
The text was updated successfully, but these errors were encountered: