LambdaDataset?
See original GitHub issueI’m wondering if this is of interest to the torchvision community: a dataset defined with two functions. It would look like this:
wrapped_dset = # some dataset
def data(i):
return wrapped_dset[i][0]
def target(i):
return data(i)[:, ::2, ::2] # downsample on the fly
dset = LambdaDataset(data_func=data, target_func=target, length=len(wrapped_dset))
It could be super-handy to combine datasets, switch out the target like above, etc., without having to write a separate class.
Issue Analytics
- State:
- Created 5 years ago
- Comments:6 (5 by maintainers)
Top Results From Across the Web
The LAMBADA dataset: Word prediction requiring a broad ...
We introduce LAMBADA, a dataset to evaluate the capabilities of computational models for text understanding by means of a word prediction task.
Read more >The LAMBADA dataset: Word prediction ... - ACL Anthology
Association for Computational Linguistics. Cite (Informal):: The LAMBADA dataset: Word prediction requiring a broad discourse context (Paperno et al., ACL 2016)
Read more >lambada | TensorFlow Datasets
The LAMBADA dataset evaluates the capabilities of computational models for text understanding by means of a word prediction task. LAMBADA is a collection...
Read more >The LAMBADA dataset: Word prediction requiring ... - iris@unitn
The LAMBADA dataset: Word prediction requiring a broad discourse context∗. Denis Paperno, Germán Kruszewski, Angeliki Lazaridou, Quan Ngoc Pham†,.
Read more >(PDF) The LAMBADA dataset: Word prediction requiring a ...
... The goal of the LAMBADA task is to predict a given target word from its broad context (on average, 4.6 sentences collected...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found

Yeah, I tried to bring forth the best arguments, but they’re not really that strong. And I understand the reasons against.
Thanks for the understanding @kohr-h But there might be other places that such a functionality might be desired, for example as a third-party package?