Select randomly percent of datasets in each percent of epochs #16155
Unanswered
kobrafarshidi
asked this question in
Lightning Trainer API: Trainer, LightningModule, LightningDataModule
Replies: 1 comment 2 replies
-
You can reload your dataloaders every n epochs by specifying the following trainer argument. In your case, it'll look like this since you want to update your dataloaders every two epochs: Trainer(..., reload_dataloaders_every_n_epochs=2) |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
I want to train my model with 4000 datas in 4 epochs. I want to train with percentage of datasets for percentage of epochs .For example it trains 2 the first of epoch only 2000 random data, then for 2 next epoch, 2000 random data.How can I do that? Can I do with changing dataloader or other way?
Beta Was this translation helpful? Give feedback.
All reactions