Description Usage Arguments Value Examples
View source: R/compute_labels.R
Given a data matrix and a centroid matrix, it assigns each data point to the closest centroid, using block processing.
1 2 3 4 5 6 | predict_mini_batch_r(
data,
centroids,
BPPARAM = BiocParallel::SerialParam(),
...
)
|
data |
a matrix-like object with features in row and samples in columns. |
centroids |
a matrix with the coordinates of the centroids. |
BPPARAM |
for parallel computations. See the 'BiocParallel' package. |
... |
passed to 'blockApply'. |
a vector of cluster labels for each observation.
1 2 3 4 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.