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

Confusion regarding data conversion in experiments.py #2

Open
arslansadiq opened this issue Dec 15, 2018 · 2 comments
Open

Confusion regarding data conversion in experiments.py #2

arslansadiq opened this issue Dec 15, 2018 · 2 comments

Comments

@arslansadiq
Copy link

arslansadiq commented Dec 15, 2018

Hi,
Excuse my ignorance, I want to ask that in models_code/experiments.py, function test_eval() has a line y_.cpu().data.numpy()[:, :num_classes].argmax(axis=1).

Now my question is that, why are you using y_.cpu().data.numpy() why not y_.cpu().numpy(), I tested both returns the same output?
First of all what does it mean, secondly, both produces same results, why are you using it in this way then?
One more thing I want to ask is that, for queries related to your paper, should I write issues here or email you guys?

Thank you
Regards

@arslansadiq arslansadiq changed the title Confusion regarding data conversion Confusion regarding data conversion in experiments.py Dec 15, 2018
@MSusik
Copy link
Owner

MSusik commented Dec 17, 2018

Now my question is that, why are you using y_.cpu().data.numpy() why not y_.cpu().numpy(), I tested both returns the same output?

I don't have any reason to use one over another. Just like you mentioned, both usually do the same thing.

One more thing I want to ask is that, for queries related to your paper, should I write issues here or email you guys?

If it concerns the implementation, probably Github is better, email otherwise.

@arslansadiq
Copy link
Author

arslansadiq commented Dec 18, 2018

Alright Thank for your reply.

It's regarding the math of the paper, I can't really understand the mathematical Intuition behind Inhibited softmax i.e. the introduction of c parameter and the certainty factor. I share more details in the email.

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