Split a cluster on the fly

Share:

Description

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

Usage

1
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.

Value

An object of class unsupervised.

Author(s)

Saip Ciss saip.ciss@wanadoo.fr

See Also

mergeClusters, modifyClusters

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
## 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) 

Want to suggest features or report bugs for rdrr.io? Use the GitHub issue tracker.