Description Usage Arguments Value Examples
Creates two torch datasets, from given train_x, test_x matrices and train_y, test_y vectors and converts them into torch dataloaders with provided batch size. It is used for both classifier and adversarial. During the initialization NAs are ommited.
1 | dataset_loader(train_x, train_y, test_x, test_y, batch_size = 50, dev)
|
train_x |
numeric, scaled matrix of predictors used for training |
train_y |
numeric, scaled vector of target used for training |
test_x |
integer, matrix of predictors used for testing |
test_y |
integer, vector of predictors used for testing |
batch_size |
integer indicating a batch size used in dataloader. Default: 50 |
dev |
device used for calculations (cpu or gpu) |
list of two data sets and two dataloaders for train and test respectively
1 2 3 4 5 6 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.