Search in sources :

Example 16 with SubspaceModel

use of de.lmu.ifi.dbs.elki.data.model.SubspaceModel in project elki by elki-project.

the class DiSHTest method testDiSHSubspaceOverlapping.

/**
 * Run DiSH with fixed parameters and compare the result to a golden standard.
 */
@Test
public void testDiSHSubspaceOverlapping() {
    Database db = makeSimpleDatabase(UNITTEST + "subspace-overlapping-4-5d.ascii", 1100);
    Clustering<SubspaceModel> result = // 
    new ELKIBuilder<DiSH<DoubleVector>>(DiSH.class).with(DiSH.Parameterizer.EPSILON_ID, // 
    0.1).with(DiSH.Parameterizer.MU_ID, // 
    40).with(DiSHPreferenceVectorIndex.Factory.STRATEGY_ID, // 
    DiSHPreferenceVectorIndex.Strategy.APRIORI).build().run(db);
    testFMeasure(db, result, 0.653797548);
    testClusterSizes(result, new int[] { 61, 84, 148, 188, 289, 330 });
}
Also used : Database(de.lmu.ifi.dbs.elki.database.Database) SubspaceModel(de.lmu.ifi.dbs.elki.data.model.SubspaceModel) AbstractClusterAlgorithmTest(de.lmu.ifi.dbs.elki.algorithm.clustering.AbstractClusterAlgorithmTest) Test(org.junit.Test)

Aggregations

SubspaceModel (de.lmu.ifi.dbs.elki.data.model.SubspaceModel)16 Subspace (de.lmu.ifi.dbs.elki.data.Subspace)9 AbstractClusterAlgorithmTest (de.lmu.ifi.dbs.elki.algorithm.clustering.AbstractClusterAlgorithmTest)7 Database (de.lmu.ifi.dbs.elki.database.Database)7 Test (org.junit.Test)7 Cluster (de.lmu.ifi.dbs.elki.data.Cluster)6 DoubleVector (de.lmu.ifi.dbs.elki.data.DoubleVector)5 ELKIBuilder (de.lmu.ifi.dbs.elki.utilities.ELKIBuilder)5 Clustering (de.lmu.ifi.dbs.elki.data.Clustering)4 ArrayList (java.util.ArrayList)4 ArrayModifiableDBIDs (de.lmu.ifi.dbs.elki.database.ids.ArrayModifiableDBIDs)3 ModifiableDBIDs (de.lmu.ifi.dbs.elki.database.ids.ModifiableDBIDs)3 StepProgress (de.lmu.ifi.dbs.elki.logging.progress.StepProgress)3 NumberVector (de.lmu.ifi.dbs.elki.data.NumberVector)2 IndefiniteProgress (de.lmu.ifi.dbs.elki.logging.progress.IndefiniteProgress)2 Pair (de.lmu.ifi.dbs.elki.utilities.pairs.Pair)2 List (java.util.List)2 AbstractProjectedClustering (de.lmu.ifi.dbs.elki.algorithm.clustering.AbstractProjectedClustering)1 MultivariateGaussianModel (de.lmu.ifi.dbs.elki.algorithm.clustering.em.MultivariateGaussianModel)1 CLIQUESubspace (de.lmu.ifi.dbs.elki.algorithm.clustering.subspace.clique.CLIQUESubspace)1