classificationErrorDistance | R Documentation |
Compute the classification error distance
1 - \frac{1}{n} \max_{\sigma}{\sum_{C \in \cal{P}}{|C \cap \sigma(C)|}}
with \sigma
a weighted matching between the clusters of both partitions.
The nodes are the classes of each partition, the weights are the overlap of objects.
classificationErrorDistance(p, q)
## S4 method for signature 'Partition,Partition'
classificationErrorDistance(p, q)
p |
The partition |
q |
The partition |
classificationErrorDistance(p = Partition, q = Partition)
: Compute given two partitions
This measure is implemented using lp.assign
from
the lpSolve
package to compute the maxmimal matching of a
weighted bipartite graph.
Fabian Ball fabian.ball@kit.edu
Meila2001partitionComparison
\insertRefMeila2005partitionComparison
isTRUE(all.equal(classificationErrorDistance(new("Partition", c(0, 0, 0, 1, 1)),
new("Partition", c(0, 0, 1, 1, 1))), 0.2))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.