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

Accuracy -- Version Error #8

Open
wangtao666666 opened this issue Feb 20, 2019 · 7 comments
Open

Accuracy -- Version Error #8

wangtao666666 opened this issue Feb 20, 2019 · 7 comments
Labels
wontfix This will not be worked on

Comments

@wangtao666666
Copy link

why accuracy of the model tensor(0)?
2019-02-20 11 06 04

@KulikovML
Copy link

KulikovML commented Mar 3, 2019

I have the same problem in evaluate() function. you can replace
return torch.eq(y_preds,y_test_var).data.sum()/x_test_var.size(0)
to
return torch.eq(y_preds,y_test_var).data.numpy().sum()/x_test_var.size(0)

@s1162276945
Copy link

s1162276945 commented Mar 11, 2019

return torch.eq(y_preds,y_test_var).data.numpy().sum()/x_test_var.size(0)

Excuse me, but what is the reason?
I have changed the file as you say, but still show "Accuracy of the model tensor(0)"
maybe it's the problem of epoch?

@s1162276945
Copy link

why accuracy of the model tensor(0)?
2019-02-20 11 06 04

I have met the same problem with you.

@kaushalshetty
Copy link
Owner

@s1162276945 , I am not maintaining the repo anymore. The code was tested in pytorch v0.3, looks like much changes are done to pytorch. Try running the code in pytorch v0.3.

@kaushalshetty kaushalshetty changed the title Accuracy Accuracy --- Version Error Mar 12, 2019
@kaushalshetty kaushalshetty changed the title Accuracy --- Version Error Accuracy -- Version Error Mar 12, 2019
@s1162276945
Copy link

@s1162276945 , I am not maintaining the repo anymore. The code was tested in pytorch v0.3, looks like much changes are done to pytorch. Try running the code in pytorch v0.3.

OK,thank you advice.

@vhientran
Copy link

vhientran commented May 10, 2019

Please help me to explain the model in Figure 1 (https://arxiv.org/pdf/1703.03130.pdf). How to create a representation vector from a M matrix?

@a389965626
Copy link

@s1162276945 , I am not maintaining the repo anymore. The code was tested in pytorch v0.3, looks like much changes are done to pytorch. Try running the code in pytorch v0.3.

OK,thank you advice.

can the new version pytorch work?

@kaushalshetty kaushalshetty added the wontfix This will not be worked on label Oct 9, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
wontfix This will not be worked on
Projects
None yet
Development

No branches or pull requests

6 participants