getSimpleKerasModel | R Documentation |
build, compile, and train a simple model (for testing)
getSimpleKerasModel(specList, kerasConf = getKerasConf())
specList |
spec |
kerasConf |
keras configuration. Default: return value from |
model. Fitted keras model
### 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" nobs <- 1000 batch_size <- 32 prop <- 2/3 dfCensus <- getDataCensus(target = target, nobs = nobs) data <- getGenericTrainValTestData(dfGeneric = dfCensus, prop = prop) specList <- genericDataPrep(data=data, batch_size = batch_size) kerasConf <- getKerasConf() simpleModel <- getSimpleKerasModel(specList = specList, kerasConf = kerasConf) }
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.