Search in sources :

Example 6 with ClusterContingencyTable

use of de.lmu.ifi.dbs.elki.evaluation.clustering.ClusterContingencyTable in project elki by elki-project.

the class ClusteringAdjustedRandIndexSimilarityFunction method distance.

@Override
public double distance(Clustering<?> o1, Clustering<?> o2) {
    ClusterContingencyTable ct = new ClusterContingencyTable(false, true);
    ct.process(o1, o2);
    return 1. - ct.getPaircount().adjustedRandIndex();
}
Also used : ClusterContingencyTable(de.lmu.ifi.dbs.elki.evaluation.clustering.ClusterContingencyTable)

Example 7 with ClusterContingencyTable

use of de.lmu.ifi.dbs.elki.evaluation.clustering.ClusterContingencyTable in project elki by elki-project.

the class ClusteringAdjustedRandIndexSimilarityFunction method similarity.

@Override
public double similarity(Clustering<?> o1, Clustering<?> o2) {
    ClusterContingencyTable ct = new ClusterContingencyTable(false, true);
    ct.process(o1, o2);
    return ct.getPaircount().adjustedRandIndex();
}
Also used : ClusterContingencyTable(de.lmu.ifi.dbs.elki.evaluation.clustering.ClusterContingencyTable)

Example 8 with ClusterContingencyTable

use of de.lmu.ifi.dbs.elki.evaluation.clustering.ClusterContingencyTable in project elki by elki-project.

the class ClusteringRandIndexSimilarityFunction method similarity.

@Override
public double similarity(Clustering<?> o1, Clustering<?> o2) {
    ClusterContingencyTable ct = new ClusterContingencyTable(false, true);
    ct.process(o1, o2);
    return ct.getPaircount().randIndex();
}
Also used : ClusterContingencyTable(de.lmu.ifi.dbs.elki.evaluation.clustering.ClusterContingencyTable)

Example 9 with ClusterContingencyTable

use of de.lmu.ifi.dbs.elki.evaluation.clustering.ClusterContingencyTable in project elki by elki-project.

the class ClusteringBCubedF1SimilarityFunction method similarity.

@Override
public double similarity(Clustering<?> o1, Clustering<?> o2) {
    ClusterContingencyTable ct = new ClusterContingencyTable(false, true);
    ct.process(o1, o2);
    return ct.getBCubed().f1Measure();
}
Also used : ClusterContingencyTable(de.lmu.ifi.dbs.elki.evaluation.clustering.ClusterContingencyTable)

Example 10 with ClusterContingencyTable

use of de.lmu.ifi.dbs.elki.evaluation.clustering.ClusterContingencyTable in project elki by elki-project.

the class ClusteringFowlkesMallowsSimilarityFunction method distance.

@Override
public double distance(Clustering<?> o1, Clustering<?> o2) {
    ClusterContingencyTable ct = new ClusterContingencyTable(false, true);
    ct.process(o1, o2);
    return 1. - ct.getPaircount().fowlkesMallows();
}
Also used : ClusterContingencyTable(de.lmu.ifi.dbs.elki.evaluation.clustering.ClusterContingencyTable)

Aggregations

ClusterContingencyTable (de.lmu.ifi.dbs.elki.evaluation.clustering.ClusterContingencyTable)11 ByLabelClustering (de.lmu.ifi.dbs.elki.algorithm.clustering.trivial.ByLabelClustering)2 Model (de.lmu.ifi.dbs.elki.data.model.Model)2 AbstractClusterAlgorithmTest (de.lmu.ifi.dbs.elki.algorithm.clustering.AbstractClusterAlgorithmTest)1 Database (de.lmu.ifi.dbs.elki.database.Database)1 StaticArrayDatabase (de.lmu.ifi.dbs.elki.database.StaticArrayDatabase)1 ListParameterization (de.lmu.ifi.dbs.elki.utilities.optionhandling.parameterization.ListParameterization)1 Test (org.junit.Test)1