fct_sim_anneal {mixedLSR} | R Documentation |
Internal Simulated Annealing Function
Description
Internal Simulated Annealing Function
Usage
fct_sim_anneal(
x,
y,
k,
init_assign,
lambda,
temp,
mu,
eps,
accept_prob,
sim_N,
track,
anneal_iter = 1000,
verbose
)
Arguments
x |
A matrix of predictors. |
y |
A matrix of responses. |
k |
The number of groups. |
init_assign |
An initial clustering assignment. |
lambda |
A vector of penalization parameters. |
temp |
The initial simulated annealing temperature, temp > 0. |
mu |
The simulated annealing decrease temperature fraction. Once the best configuration cannot be improved, reduce the temperature to (mu)T, 0 < mu < 1. |
eps |
The final simulated annealing temperature, eps > 0. |
accept_prob |
The simulated annealing probability of accepting a new assignment 0 < accept_prob < 1. When closer to 1, trial assignments will only be small perturbation of the current assignment. When closer to 0, trial assignments are closer to random. |
sim_N |
The simulated annealing number of iterations for reaching equilibrium. |
track |
A likelihood tracking vector. |
anneal_iter |
The maximum number of simulated annealing iterations. |
verbose |
A boolean indicating whether to print to screen. |
Value
An updated clustering vector.