Description Usage Arguments Value See Also Examples
This function creates a list with parameters for Modal Baum-Welch (MBW)
clustering algorithm used as an argument for hmmvbClust
.
1 2 | clustControl(minSize = 1, modeTh = 0.01, useL1norm = FALSE,
getlikelh = FALSE)
|
minSize |
Minimum cluster size. Clusters that contain the number of data points
smaller than |
modeTh |
Distance parameter that controls mode merging. Larger values promote merging of different clusters. |
useL1norm |
A logical value indicating whether or not L1 norm will be used to calculate the distance. |
getlikelh |
A logical value indicating whether or not to calculate the loglikelihood for every data point. |
The named list with parameters.
1 2 3 4 5 6 | # avoid clusters of size < 60
Vb <- vb(1, dim=4, numst=2)
set.seed(12345)
hmmvb <- hmmvbTrain(iris[,1:4], VbStructure=Vb)
clust <- hmmvbClust(iris[,1:4], model=hmmvb, control=clustControl(minSize=60))
show(clust)
|
Data size: 150 number of large clusters: 1 #points in large clusters: 100
Warning: percentage of points in large clusters is small: %66.6667 < 80 percent
------------------------------------------------------
Clustering with Hidden Markov Model on Variable Blocks
------------------------------------------------------
Number of clusters = 2
Cluster sizes: 0 150
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.