Description Usage Arguments Value See Also Examples
View source: R/get_model_params.R
Read in vector of arguments, check their types and add them to a list params
for
model training. If a parameter isn't in the given list the default is used.
1 |
args |
A character vector of arguments (character strings) of the form "<name>=<value>". Values will be converted to logical or numeric when possible. Accepted <names> are below. Defaults in parenthesis:
|
list of parameters used by train
function. Values in args
that
are not model parameters will be excluded and a warning displayed.
1 2 3 4 5 6 7 8 9 10 11 | args <- c('decomp=Tucker', 'row.share=F',
'A1.intercept=T', 'A2.intercept=T', 'A3.intercept=F',
'H1.intercept=T', 'H2.intercept=T', 'H3.intercept=T',
'plot=T', 'verbose=F','R1=4', 'R2=4', 'R3=2',
'm1.alpha=1e-10', 'm2.alpha=1e-10', 'm3.alpha=1',
'm1.beta=1e10', 'm2.beta=1e10', 'm3.beta=1',
'core.3D.alpha=1e-10', 'core.3D.beta=1e10',
'parallel=T', 'cores=5', 'lower.bnd=T',
'update.order=c(3,2,1)', 'show.mode=c(1,2,3)',
'wrong=1')
model.params <- get_model_params(args)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.