Description Usage Arguments Details Examples
Auxiliary function for fm.train fitting.
1 | model.control(task = "CLASSIFICATION", solver = "TDAP")
|
task |
A character string naming the task for FM model, such as "CLASSIFICATION", "REGRESSION" |
... |
a list of parameters for controlling the fitting process |
solver |
A character string naming an optimization routine of FM model, the default solver is "TDAP" |
FMwR provide many optimization routines including:
"SGD": stochastic gradient descent, supporting ℓ1 or ℓ2 SGD.solver
"FTRL": FTRL-Proximal FTRL.solver
"TDAP": TDAP.solver
"MCMC": MCMC.solver
"ALS": ALS.solver
The other parameters including:
keep.w0whether to keep intercept, default TRUE
L2.w0regularization of intercept, default 0.0
keep.w1whether to keep 1-way interaction, default TRUE
L1.w1ℓ1 regularization of 1-way interaction, default 0.0
L2.w1ℓ2 regularization of 1-way interaction, default 0.0
factor.numbernumber of 2-way latent factors, default 2L
v.init_meanmean for initialization of 2-ways latent factors, default 0.0
v.init_stdevstdev for initialization of 2-ways latent factors, default 0.01
L1.vℓ1 regularization of 2-way interaction, default 0.0
L2.vℓ2 regularization of 2-way interaction, default 0.0
1 | model.control() # the default settings
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.