parallel_initial_csmoothEM.RdRuns initialize_csmoothEM with multiple initialization methods,
each for num_iter warm-start iterations, and returns a named list of fits.
A per-method summary table is attached as an attribute "summary".
The summary table reports the last values of elbo_trace, loglik_trace,
and ml_trace. In the current codebase, ml_trace is the collapsed
objective \(\mathcal{C}\) (Laplace-exact in the Gaussian csmooth setting).
Numeric matrix (n x d).
Character vector of initialization methods. Default includes
"PCA", "tSNE", "random", "fiedler", "pcurve", "isomap".
See initialize_csmoothEM for details.
Integer \(\ge 1\). Number of warm-start iterations to run inside
initialize_csmoothEM for each method.
Integer \(\ge 1\). Number of cores to use. On non-Windows systems,
uses parallel::mclapply; on Windows, falls back to a PSOCK cluster.
Optional integer \(\ge 2\). Number of mixture components. If NULL,
the default logic in initialize_csmoothEM is used.
Character. One of "none", "prior", "ml".
Logical values are accepted for backward compatibility: TRUE is treated as
"prior" and FALSE as "none".
Positive bounds for lambda_vec (passed to initialize_csmoothEM).
Character. Only used when adaptive="ml" (passed to initialize_csmoothEM).
Either "mstep" or "ml"; see do_csmoothEM_ml_collapsed.
Positive bounds for sigma2 when adaptive="ml" and
sigma_update="ml".
Optional integer seed. If provided, a different derived seed is used per method.
Logical; reserved for future use.
Additional arguments passed to initialize_csmoothEM (and downstream ordering routines).
A named list of fits, with names equal to methods. Each entry is either
a csmooth_em object (on success) or NULL (on failure).
The list has an attribute "summary" which is a data.frame with one row per method:
method: method name
success: logical
n,d,K: scalar integers from summary(csmooth_em) when available
elbo_last: last penalized ELBO (or NA)
obj_last: last penalized observed objective (or NA)
ml_last: last collapsed objective \(\mathcal{C}\) (or NA)
error: error message if failed