Prepares the Guess The Correlation dataset available on Kaggle here A copy of this dataset is hosted in a public Google Cloud bucket so you don't need to authenticate.
guess_the_correlation_dataset(
root,
split = "train",
transform = NULL,
target_transform = NULL,
indexes = NULL,
download = FALSE
)
path to the data location
string. 'train' or 'submission'
function that takes a torch tensor representing an image and return another tensor, transformed.
function that takes a scalar torch tensor and returns another tensor, transformed.
set of integers for subsampling (e.g. 1:140000)
whether to download or not
A torch dataset that can be consumed with torch::dataloader()
.
if (torch::torch_is_installed() && FALSE) {
gtc <- guess_the_correlation_dataset("./data", download = TRUE)
length(gtc)
}