View source: R/funKerasCensus.R
predDlCensus | R Documentation |
Predict deep learning models on Census data
predDlCensus( x = NULL, target = "age", task.type = "classif", nobs = 10000, nfactors = "high", nnumericals = "high", cardinality = "high", cachedir = "oml.cache", k = 1, prop = 2/3, batch_size = 32, verbosity = 0 )
x |
matrix with untransformed hyperparameters, e.g., result from |
target |
target |
task.type |
class/reg |
nobs |
number of obsvervations, max: 229,285 |
nfactors |
(character) number of factor variables |
nnumericals |
(character) number of numerical variables |
cardinality |
(character) cardinality |
cachedir |
cache directory |
k |
number of repeats |
prop |
vector. proportion between train / test and train/val. Default:
Note: If |
batch_size |
batch_size. Default: |
verbosity |
verbosity. Default: 0 |
list of matrices with true and predicted values.
trueY
true values
hatY
predicted values
### These examples require an activated Python environment as described in ### Bartz-Beielstein, T., Rehbach, F., Sen, A., and Zaefferer, M.: ### Surrogate Model Based Hyperparameter Tuning for Deep Learning with SPOT, ### June 2021. http://arxiv.org/abs/2105.14625. PYTHON_RETICULATE <- FALSE if(PYTHON_RETICULATE){ cfg <- getModelConf(list(model="dl")) x <- matrix(cfg$defaults, nrow=1) res <- predDlCensus(x=x, k=2) }
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.