|
|
|||||||||||||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectde.lmu.ifi.dbs.elki.evaluation.paircounting.PairCountingFMeasure
public class PairCountingFMeasure
Compare two clustering results using a pair-counting F-Measure. A pair are any two objects that belong to the same cluster. Two clusterings are compared by comparing their pairs; if two clusterings completely agree, they also agree on every pair; even when the clusters and points are ordered differently. An empty clustering will of course have no pairs, the trivial all-in-one clustering of course has n^2 pairs. Therefore neither recall nor precision itself are useful, however their combination -- the F-Measure -- is useful.
Constructor Summary | |
---|---|
PairCountingFMeasure()
|
Method Summary | ||
---|---|---|
static
|
compareClusterings(R result1,
S result2)
Compare two clustering results. |
|
static
|
compareClusterings(R result1,
S result2,
double beta)
Compare two clustering results. |
|
private static double |
countPairs(PairSortedGeneratorInterface first,
PairSortedGeneratorInterface second,
double beta)
Compare two sets of generated pairs. |
|
static
|
getPairGenerator(R clusters)
Get a pair generator for the given Clustering |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public PairCountingFMeasure()
Method Detail |
---|
public static <R extends Clustering<M>,M extends Model> PairSortedGeneratorInterface getPairGenerator(R clusters)
R
- Clustering result classM
- Model typeclusters
- Clustering result
public static <R extends Clustering<M>,M extends Model,S extends Clustering<N>,N extends Model> double compareClusterings(R result1, S result2, double beta)
R
- Result typeM
- Model typeS
- Result typeN
- Model typeresult1
- first resultresult2
- second resultbeta
- Beta value for the F-Measure
public static <R extends Clustering<M>,M extends Model,S extends Clustering<N>,N extends Model> double compareClusterings(R result1, S result2)
R
- Result typeM
- Model typeS
- Result typeN
- Model typeresult1
- first resultresult2
- second result
private static double countPairs(PairSortedGeneratorInterface first, PairSortedGeneratorInterface second, double beta)
first
- first setsecond
- second setbeta
- beta value for F-Measure
|
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |