Description Usage Arguments Value References Examples
Computes the success ratio of a binary partition by comparing the solution with true class labels.
1 | success_ratio(assigned, labels)
|
assigned |
a vector of cluster assignments made by a clustering algorithm. |
labels |
a vector of true class labels to be compared with assigned. |
the success ratio of the cluster assignment solution.
Hofmeyr, D. (2016) Clustering by Minimum Cut Hyperplanes. IEEE Transactions on Pattern Analysis and Machine Intelligence.
1 2 3 4 5 6 7 8 | ## load optidigits dataset
data(optidigits)
## generate a binary partition using minimum normalised cut hyperplane
sol <- ncuth(optidigits$x)
## evaluate using success ratio
success_ratio(sol$cluster, optidigits$c)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.