Description Usage Arguments Author(s) Examples
The sensitivity or conditional probability of the correct classification of cluster k is calculated as follows: First, the proportions of observations whose true cluster label is k are computed for each classified clusters. Then the largest proportion is selected as the conditional probability of the correct classification. Since this calculation can return 1 for sensitivities of all clusters if all observations belong to one cluster, we also report the observed cluster labels returned by the algorithms.
1 | Sensitivity(label1, label2)
|
label1 |
A vector of length N, containing the cluster labels from any clustering algorithms. |
label2 |
A vector of length N, containing the true cluster labels. |
Yumi Kondo <y.kondo@stat.ubc.ca>
1 2 3 | vec1<-c(1,1,1,2,3,3,3,2,2)
vec2<-c(3,3,3,1,1,2,2,1,1)
Sensitivity(vec1,vec2)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.