View source: R/funKerasCensus.R
| getMlConfig | R Documentation |
get ml config for keras on census
getMlConfig( target, model, data, task.type, nobs, nfactors, nnumericals, cardinality, data.seed, prop )
target |
character |
model |
character model name, e.g., |
data |
data, e.g., from |
task.type |
|
nobs |
number of observations (numerical), max |
nfactors |
(character), e.g., |
nnumericals |
(character), e.g., |
cardinality |
(character), e.g., |
data.seed |
(numerical) seed |
prop |
(numerical) split proportion (train, vals,test) |
cfg (list)
### 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){
target <- "age"
task.type <- "classif"
nobs <- 1e2
nfactors <- "high"
nnumericals <- "high"
cardinality <- "high"
data.seed <- 1
cachedir <- "oml.cache"
model <- "ranger"
dfCensus <- getDataCensus(
task.type = task.type,
nobs = nobs,
nfactors = nfactors,
nnumericals = nnumericals,
cardinality = cardinality,
data.seed = data.seed,
cachedir = cachedir,
target = target)
cfg <- getMlConfig(
target = target,
model = model,
data = dfCensus,
task.type = task.type,
nobs = nobs,
nfactors = nfactors,
nnumericals = nnumericals,
cardinality = cardinality,
data.seed = data.seed,
prop= 2/3)
}
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.