Skip to content
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

AttributeError: 'Data' object has no attribute 'mask_link_positive' #10

Open
mtli77 opened this issue Dec 10, 2019 · 4 comments
Open

AttributeError: 'Data' object has no attribute 'mask_link_positive' #10

mtli77 opened this issue Dec 10, 2019 · 4 comments

Comments

@mtli77
Copy link

mtli77 commented Dec 10, 2019

Hi, @JiaxuanYou
Thanks for sharing your code!
When I run the scripts according to the README.md, some errors occurs:
-----------------Final------------------- 0.73879 0.014555 Loading data... Using only features.. Traceback (most recent call last): File "main.py", line 51, in <module> data_list = get_tg_dataset(args, dataset_name, use_cache=args.cache, remove_feature=args.rm_feature) File "/disk/P-GNN/dataset.py", line 93, in get_tg_dataset infer_link_positive=True if args.task == 'link' else False) File "/disk/P-GNN/utils.py", line 120, in get_link_mask split_edges(data.mask_link_positive, remove_ratio) AttributeError: 'Data' object has no attribute 'mask_link_positive'

It seems that there is something trouble with the input graph data.
Could you help to solve this problem? And give some further introduction for the input data of the project?

Thank you very much!
Waiting for your reply!

@qiuhaolu
Copy link

same error here

1 similar comment
@yhcc
Copy link

yhcc commented Dec 18, 2019

same error here

@Abhyuday99
Copy link

Facing the same issue here.

@dreamhomes
Copy link

Hi, @JiaxuanYou
Thanks for sharing your code!
When I run the scripts according to the README.md, some errors occurs:
-----------------Final------------------- 0.73879 0.014555 Loading data... Using only features.. Traceback (most recent call last): File "main.py", line 51, in <module> data_list = get_tg_dataset(args, dataset_name, use_cache=args.cache, remove_feature=args.rm_feature) File "/disk/P-GNN/dataset.py", line 93, in get_tg_dataset infer_link_positive=True if args.task == 'link' else False) File "/disk/P-GNN/utils.py", line 120, in get_link_mask split_edges(data.mask_link_positive, remove_ratio) AttributeError: 'Data' object has no attribute 'mask_link_positive'

It seems that there is something trouble with the input graph data.
Could you help to solve this problem? And give some further introduction for the input data of the project?

Thank you very much!
Waiting for your reply!

Grid dataset is not used to link_pair task, so you can use Communities ,Emails, and Protein dataset for pairwised node classification tast.

Excute command:

python main.py --model PGNN --layer_num 2 --dataset communities

Instead of --dataset grid.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants