subsets icon indicating copy to clipboard operation
subsets copied to clipboard

khot greater than 1

Open yujianll opened this issue 2 years ago • 2 comments

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 avatar Jun 07 '22 08:06 yujianll

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.

yujianll avatar Jun 07 '22 19:06 yujianll

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

sangmichaelxie avatar Sep 15 '23 23:09 sangmichaelxie