Lightning-AI / Lightning-AI/pytorch-lightning
`limit_val_batches` as sequence
Nobody has claimed this yet.
- Dominant language
- Python
- Stars
- 31.4k
- Forks
- 3.8k
- Avg merge
- 6d 7h
- Merged PRs (30d)
- 6
Description
### Description & Motivation
Support sequence inputs to `limit_val_batches` in order to apply the limits to each val dataloader separately. E.g., `limit_val_batches=[10, 20]` could be interpreted as limit to 10 batches from the first val dataloader and 20 batches from the second.
### Pitch
No response
### Alternatives
No response
### Additional context
No response
cc @lantiga @borda @justusschock
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
No file or test is named. Start by locating the existing limit_val_batches handling and the validation-loop tests, then trace how multiple validation dataloaders are limited. Done means sequence values apply to each validation dataloader separately while the existing scalar behavior remains supported.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- python, pytorch
- Domain
- machine-learning
- Issue type
- Feature
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 38/100