question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

I’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:closed
  • Created 5 years ago
  • Comments:6 (5 by maintainers)

github_iconTop GitHub Comments

1reaction
kohr-hcommented, Jun 7, 2018

Yeah, I tried to bring forth the best arguments, but they’re not really that strong. And I understand the reasons against.

0reactions
fmassacommented, Jun 8, 2018

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?

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found