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

about dataset spiltting #62

Open
raymond00000 opened this issue Aug 4, 2021 · 0 comments
Open

about dataset spiltting #62

raymond00000 opened this issue Aug 4, 2021 · 0 comments

Comments

@raymond00000
Copy link

raymond00000 commented Aug 4, 2021

Hi,

Sorry I am confused on the data splitting steps and codes.
Please kindly correct me if I got it wrong.

Omniglot has 50 classes. it allocated 30 classes in its original train split, and 20 in test split. these 20 is not used during model-training.

Assume we do 10 classes 5 shot classification in MAML.
in inner loop, we will randomly picked 10 classes from that 30 classes. For each class, we sample 5 pictures.
so, we will have 50 samples as support set, then we use these samples to update the base-model, so base-model becomes meta-model.
then, we will retrieve some samples (how and how many?? I am very confused on this sampling step) as query set, then we calculate loss with meta-model using these samples but to update the base-model.

my question is about the query set.

  1. At the very beginning, do I have to split the 30 classes into 2 groups, say, 15 for support set, 15 for query set? I think I don't have too.
  2. within the same class, does it have to be non-overlapping between the query set and support set? In another words, for one specific sample, will it be in support set in one mini-batch and in query set in next mini-batch? I think it is yes.

Many thanks for answering.

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

1 participant