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

khot greater than 1 #14

Open
yujianll opened this issue Jun 7, 2022 · 2 comments
Open

khot greater than 1 #14

yujianll opened this issue Jun 7, 2022 · 2 comments

Comments

@yujianll
Copy link

yujianll commented Jun 7, 2022

Hi, thanks for sharing the code!

I'm using the SubsetOperator to sample k elements from n elements (k < n). However, I found khot > 1 for some scores. I wonder if this is the expected output. In the paper, it says each value in the k-hot vector should be within [0, 1].

@yujianll
Copy link
Author

yujianll commented Jun 7, 2022

As a follow up question, is there any methods that can give a relaxed khot vector within [0, 1]? I want to represent the unselected elements as 1 - khot but fail to do so if khot is greater than 1.

@sangmichaelxie
Copy link
Collaborator

Sorry this is late - How much greater than 1 is it? It might just be a numerical issue that could be resolved by renormalizing.

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