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

Separate train and validation datasets without and with labels #147

Open
nsmdgr opened this issue Sep 27, 2021 · 2 comments
Open

Separate train and validation datasets without and with labels #147

nsmdgr opened this issue Sep 27, 2021 · 2 comments
Assignees
Labels
enhancement New feature or request
Projects

Comments

@nsmdgr
Copy link

nsmdgr commented Sep 27, 2021

Hi there! First of all nice work on the library, looks great.

I am in the special situation where I have a large dataset for pretraining but without any labels. I would still like to do linear and k-NN eval online on multiple smaller, related labelled datasets to measure transfer performance. This is different from the standard benchmarks where we train and evaluate on splits of the same (usually labelled) dataset, but I think should be a very common problem. It seems like this is not possible in solo-learn at the moment, is this correct? If yes, what changes would be necessary?

Thank you.

@nsmdgr nsmdgr changed the title Separate train and validation datasets with and without labels Separate train and validation datasets without and with labels Sep 27, 2021
@DonkeyShot21
Copy link
Collaborator

I agree this makes a lot of sense. We will try to implement it soon. It is quite easy to do, you just need to pass a dictionary with two train loaders to trainer.fit() and then unpack the dict in the training_step of theBaseModel and BaseMomentumModel.

@DonkeyShot21 DonkeyShot21 self-assigned this Sep 27, 2021
@DonkeyShot21 DonkeyShot21 added this to To do in solo-learn via automation Sep 27, 2021
@DonkeyShot21 DonkeyShot21 added enhancement New feature or request and removed improvement labels Sep 27, 2021
@nsmdgr
Copy link
Author

nsmdgr commented Sep 27, 2021

Thanks! I'll give it a go.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
Development

No branches or pull requests

2 participants