View source: R/RandomUniformForestsCPP.R
splitClusters | R Documentation |
Given one (or many) cluster(s), the function splits it in two new clusters.
splitClusters(object, whichOnes, seed = 2014, ...)
object |
an object of class unsupervised. |
whichOnes |
a vector defining which cluster(s), given by its label, has to be split ? |
seed |
see |
... |
not currently used. |
An object of class unsupervised.
Saip Ciss saip.ciss@wanadoo.fr
mergeClusters
, modifyClusters
## not run ## load iris data # data(iris) ## run unsupervised modelling, removing labels and committing 2 clusters # iris.uruf = unsupervised.randomUniformForest(iris[,-5], mtry = 1, nodesize = 2, # threads = 1, clusters = 2) ## view a summary # iris.uruf ## plot clusters # plot(iris.uruf) ## split the cluster which has the highest count (cluster 1, in our case) # iris.urufSplit = splitClusters(iris.uruf, 1) ## assess fitting comparing average Silhouette before and after # iris.urufSplit ## plot to see the new clusters # plot(iris.urufSplit)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.