Description Usage Arguments Value Author(s) Examples
A function to load a specified dataset from the PMLB dataset.
1 2 |
repositories |
the name of the repository you would like to query a dataset from. Defaults to
|
datasets |
the name of the dataset you wish to load. Defaults to
|
tasks |
the type of the task, either "classification" or "regression". Defaults to
|
clean.invalid |
whether to remove samples with invalid entries. Defaults to
|
clean.ohe |
options for whether to one-hot-encode columns. Defaults to
|
verbose |
whether to print messages to the console if a repository or dataset is being ignored. defaults to |
... |
trailing args. |
A list of lists, where each element is a key-worded list for a particular benchmark dataset, containing at least the following:
|
|
|
|
Eric Bridgeford
1 2 3 4 5 6 7 8 9 10 11 | library(slb)
# request 1 specific dataset from the pmlb dataset
test <- slb.load.datasets(repositories="pmlb", datasets="ESL", clean.invalid=FALSE, clean.ohe=FALSE)
length(test$ESL$Y) == 488 # a known example from the pmlb dataset
# request all of the pmlb classification datasets
## Not run:
test <- slb.load.datasets(repositories="pmlb", tasks="classification")
length(test) <- 166 # validates that we loaded all of the classification datasets from pmlb
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.