splitClusters function

Split a cluster on the fly

Split a cluster on the fly

Given one (or many) cluster(s), the function splits it in two new clusters.

splitClusters(object, whichOnes, seed = 2014, ...)

Arguments

  • object: an object of class unsupervised.
  • whichOnes: a vector defining which cluster(s), given by its label, has to be split ?
  • seed: see unsupervised.randomUniformForest.
  • ...: not currently used.

Returns

An object of class unsupervised.

Author(s)

Saip Ciss saip.ciss@wanadoo.fr

See Also

mergeClusters, modifyClusters

Examples

## 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)
  • Maintainer: Saip Ciss
  • License: BSD_3_clause + file LICENSE
  • Last published: 2022-06-21

Useful links