guess_the_correlation_dataset | R Documentation |
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 )
root |
path to the data location |
split |
string. 'train' or 'submission' |
transform |
function that takes a torch tensor representing an image and return another tensor, transformed. |
target_transform |
function that takes a scalar torch tensor and returns another tensor, transformed. |
indexes |
set of integers for subsampling (e.g. 1:140000) |
download |
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) }
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.