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

add sampling paradigm #10

Open
wants to merge 31 commits into
base: main
Choose a base branch
from
Open

Conversation

infinity1009
Copy link
Contributor

No description provided.

@@ -86,7 +116,7 @@ def __init__(self, node_type, num_node, x=None, y=None, node_ids=None):

if x is not None:
if isinstance(x, np.ndarray):
x = torch.FloatTensor(x)
x = torch.FloatTensor(x) #这里是原始实现,但是是有bug的
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

具体是什么bug?

import torch
import warnings
from scipy.sparse import csr_matrix
from torch_geometric.utils import index_to_mask
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this import not used?

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

should be excluded?

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

Successfully merging this pull request may close these issues.

3 participants