View source: R/parApplyClusterAnalysis.R
parApplyClusterAnalysis | R Documentation |
The functions provides several ways to parallelize clustering algorithms using a collection of workers. It was used for the benchmarking of clustering algorithms in [Thrun, 2018] and [Thrun/Ultsch, 2020].
parApplyClusterAnalysis(DataOrDistances,FUN,
NumberOfTrials=1:100,ClusterNo=NULL,
WorkersOrNo,SocketType="PSOCK",
SetSeed=TRUE,...)
DataOrDistances |
Option 1: Either [1:N,1:d] matrix of data (N cases, d dimensions) that will be used. One DataPoint per row or symmetric distance matrix [1:N,1:N] depending on Option2: A list of data or distance |
FUN |
Function of clustering algorithms. |
NumberOfTrials |
Number of trials to be performed with |
ClusterNo |
Number of k clusters, if required in |
WorkersOrNo |
Either already initialized workers using |
SocketType |
see |
SetSeed |
TRUE: |
... |
Further arguments required in |
Default is the number of cores existing minus 1.
In FCPS default parameters for each clustering algorithm are used automatically if not specified by the user. parApplyClusterAnalysis
expects in FUN
a function of a clustering algorithm which returns a list of objects of which one is named Cls
. If not given the whole output of FUN
is returned with a warning.
Cls
is a [1:N] numerical vector of of numbers 1:k of the k clusters labeling the data points to the clusters.
if Option1
List of
Cls_Matrix |
[1:N,1:NumberOfTrials] numerical matrix consisting of columns, in which each column represents a |
ComputationTime |
[1:N] numerical vector of the computation time in seconds |
Seeds |
[1:N] seeds used for every trial, if set otherwise NULL |
if Option2: a list of the list defined above named with the names of the DataOrDistance list.
Michael Thrun
Thrun, M. C.: Projection-Based Clustering through Self-Organization and Swarm Intelligence, Springer, Heidelberg, ISBN: 978-3658205393, 2018.
Thrun, M. C., & Ultsch, A.: Swarm Intelligence for Self-Organized Clustering, Journal of Artificial Intelligence, in press, 2020.
clusterApply
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.