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

For the type of edge in the experimental setup. #22

Open
ZhangNYG opened this issue Mar 5, 2020 · 1 comment
Open

For the type of edge in the experimental setup. #22

ZhangNYG opened this issue Mar 5, 2020 · 1 comment

Comments

@ZhangNYG
Copy link

ZhangNYG commented Mar 5, 2020

There is no supervised training in training. How to know the first type is the existence side and the second type is the non existence side.
def edge_accuracy(preds, target): _, preds = preds.max(-1) # preds torch.Size([32, 20, 2]) preds_hou torch.Size([32, 20]) correct = preds.float().data.eq( target.float().data.view_as(preds)).cpu().sum() return np.float(correct) / (target.size(0) * target.size(1))

@fatcatZF
Copy link

It seems you can set skip_first to True to make sure the first edge type denote the non-interaction edges

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

2 participants