FLXMRpkbd {circlus} | R Documentation |
This model driver for flexmix implements model-based clustering of PKBD distributions using neural network in the M-step.
FLXMRpkbd(
formula = . ~ .,
EPOCHS = 100,
LR = 0.1,
max_iter = 200,
adam_iter = 5,
free_iter = adam_iter,
line_search_fn = "strong_wolfe"
)
formula |
A formula. |
EPOCHS |
The number of epochs in the M-step estimation (default: 100). |
LR |
The learning rate used in the M-step estimation (default: 0.1). |
max_iter |
The maximum number of iterations of the LBFGS optimizer (default: 200). |
adam_iter |
The number of iteration for which the adam optimizer is used before the algorithm switches to L-BFGS (default: 5). |
free_iter |
The number of initial iterations for which the model in M-step is fully reseted (default: adam_iter). |
line_search_fn |
The method used for line search in LBFGS (default: "strong_wolfe"). |
Returns an object of class FLXMC
.
if(torch::torch_is_installed()){
mix <- rbind(rpkbd(30, 0.95, c(1, 0, 0)), rpkbd(30, 0.9, c(-1, 0, 0)))
m1 <- flexmix::flexmix(mix ~ 1, k = 2, model = FLXMRpkbd())
}