bpFitGrid | R Documentation |
This function is used to automatically select the optimal
contrastive parameter and L1 penalty term for scPCA based on a clustering
algorithm and average silhouette width. Analogous to fitGrid
,
but replaces all lapply
calls by
bplapply
.
bpFitGrid(
target,
target_valid = NULL,
center,
scale,
c_contrasts,
contrasts,
penalties,
n_eigen,
alg,
clust_method = c("kmeans", "pam", "hclust"),
n_centers,
max_iter = 10,
linkage_method = "complete",
clusters = NULL,
eigdecomp_tol = 1e-10,
eigdecomp_iter = 1000
)
target |
The target (experimental) data set, in a standard format such
as a |
target_valid |
A holdout set of the target (experimental) data set, in a
standard format such as a |
center |
A |
scale |
A |
c_contrasts |
A |
contrasts |
A |
penalties |
A |
n_eigen |
A |
alg |
A |
clust_method |
A |
n_centers |
A |
max_iter |
A |
linkage_method |
A |
clusters |
A |
eigdecomp_tol |
A |
eigdecomp_iter |
A |
A list similar to that output by prcomp
:
rotation - the matrix of variable loadings
x - the rotated data, centred and scaled, if requested, data multiplied by the rotation matrix
contrast - the optimal contrastive parameter
penalty - the optimal L1 penalty term
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.