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

Bug in few-shot sampling process #15

Closed
prohor33 opened this issue Aug 16, 2021 · 4 comments
Closed

Bug in few-shot sampling process #15

prohor33 opened this issue Aug 16, 2021 · 4 comments

Comments

@prohor33
Copy link

Hi!
It seems like function

def __valid_sample__(self, sample, set_class, target_classes):

has a bug, which affects sampling process.

You can see "for loop" and 4 "if" inside it. If flag isvalid is set to True or False in some iterations, it can be overwritten in next iterations of the loop. So, for example, first class breaks the rule shots_count <= 2*K, but second class is new and flag isvalid will be returned as True from __valid_sample__, but sample breaks validation rules.

Thus, with this bug, we can sample samples, which are breaking sampling rules, e.g. with shots_count > 2*K.

What do you think? Does this bug affects results somehow? Maybe in the good way even.

@mtt1998
Copy link

mtt1998 commented Aug 17, 2021

Hi, I just find the released episodes for train/dev/test contain episodes that have support count > 2*K shot.

@yulinchen99
Copy link
Collaborator

Thanks for reminding! We have noticed the bug here and it does lead to some ">2*K shot" issues. We will fix the bug soon. The influence should be small, however, since it is not a frequent case.

@prohor33
Copy link
Author

prohor33 commented Aug 18, 2021

@cyl628 Hi! Why you closed the bug? Did you fix the bug?

yulinchen99 pushed a commit that referenced this issue Aug 19, 2021
@iofu728
Copy link

iofu728 commented Oct 21, 2021

Hi folks,
@cyl628 Thanks for your work, but I find the Few-NERD web page also uses the wrong link in https://github.com/ningding97/fewnerd/blob/d173373b8a28f170912ff5681798b312fe75ec85/_layouts/home.html#L113.
It's misleading. Could you fix it?

Thanks!

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

4 participants