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

Leaking Validation Data in Few-Shot-Setting #125

Open
MarcoMorik opened this issue May 3, 2024 · 0 comments
Open

Leaking Validation Data in Few-Shot-Setting #125

MarcoMorik opened this issue May 3, 2024 · 0 comments

Comments

@MarcoMorik
Copy link

I noticed, that the linear probing is trained with both the validation and training dataset when using weight-decay tuning.
train_loader = feature_train_val_loader

train_loader = feature_train_val_loader

This could lead to training the linear probe with more data per class when considering the few-shot setting, because the code only filters the training data [Line 235] but not the validation dataset.

So at least for the few-shot setting, it would be necessary to use only the train_loader to train the classification head of the linear probe.

@MarcoMorik MarcoMorik changed the title [BUG] Leaking Validation Data in Few-Shot-Setting Leaking Validation Data in Few-Shot-Setting May 3, 2024
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