use of de.lmu.ifi.dbs.elki.database.Database in project elki by elki-project.
the class SNNClusteringTest method testSNNClusteringResults.
/**
* Run SNNClustering with fixed parameters and compare the result to a golden
* standard.
*/
@Test
public void testSNNClusteringResults() {
Database db = makeSimpleDatabase(UNITTEST + "different-densities-2d.ascii", 1200);
Clustering<Model> result = //
new ELKIBuilder<SNNClustering<DoubleVector>>(SNNClustering.class).with(SNNClustering.Parameterizer.EPSILON_ID, //
77).with(SNNClustering.Parameterizer.MINPTS_ID, //
28).with(SharedNearestNeighborPreprocessor.Factory.NUMBER_OF_NEIGHBORS_ID, //
100).build().run(db);
testFMeasure(db, result, 0.832371422);
testClusterSizes(result, new int[] { 73, 228, 213, 219, 231, 236 });
}
use of de.lmu.ifi.dbs.elki.database.Database in project elki by elki-project.
the class COPACTest method testCOPACResults.
/**
* Run COPAC with fixed parameters and compare the result to a golden
* standard.
*/
@Test
public void testCOPACResults() {
Database db = makeSimpleDatabase(UNITTEST + "correlation-hierarchy.csv", 450);
// these parameters are not picked too well - room for improvement.
Clustering<DimensionModel> result = //
new ELKIBuilder<COPAC<DoubleVector>>(COPAC.class).with(DBSCAN.Parameterizer.EPSILON_ID, //
0.02).with(DBSCAN.Parameterizer.MINPTS_ID, //
50).with(COPAC.Parameterizer.K_ID, //
15).build().run(db);
testFMeasure(db, result, 0.8484056);
testClusterSizes(result, new int[] { 54, 196, 200 });
}
use of de.lmu.ifi.dbs.elki.database.Database in project elki by elki-project.
the class FourCTest method testFourCResults.
/**
* Run 4C with fixed parameters and compare the result to a golden standard.
*/
@Test
public void testFourCResults() {
Database db = makeSimpleDatabase(UNITTEST + "hierarchical-3d2d1d.csv", 600);
Clustering<Model> result = //
new ELKIBuilder<FourC<DoubleVector>>(FourC.class).with(DBSCAN.Parameterizer.EPSILON_ID, //
0.30).with(DBSCAN.Parameterizer.MINPTS_ID, //
50).with(LimitEigenPairFilter.Parameterizer.EIGENPAIR_FILTER_DELTA, //
0.5).with(FourC.Settings.Parameterizer.LAMBDA_ID, //
1).build().run(db);
testFMeasure(db, result, 0.7052);
testClusterSizes(result, new int[] { 218, 382 });
}
use of de.lmu.ifi.dbs.elki.database.Database in project elki by elki-project.
the class ORCLUSTest method testORCLUSSkewedDisjoint.
/**
* Run ORCLUS with fixed parameters and compare the result to a golden
* standard.
*/
@Test
public void testORCLUSSkewedDisjoint() {
Database db = makeSimpleDatabase(UNITTEST + "correlation-skewed-disjoint-3-5d.ascii", 601);
Clustering<Model> result = //
new ELKIBuilder<ORCLUS<DoubleVector>>(ORCLUS.class).with(ORCLUS.Parameterizer.K_ID, //
3).with(ORCLUS.Parameterizer.L_ID, //
4).with(ORCLUS.Parameterizer.SEED_ID, //
0).build().run(db);
testFMeasure(db, result, 0.848054);
testClusterSizes(result, new int[] { 189, 200, 212 });
}
use of de.lmu.ifi.dbs.elki.database.Database in project elki by elki-project.
the class GeneralizedDBSCANTest method testDBSCANOnSingleLinkDataset.
/**
* Run Generalized DBSCAN with fixed parameters and compare the result to a
* golden standard.
*/
@Test
public void testDBSCANOnSingleLinkDataset() {
Database db = makeSimpleDatabase(UNITTEST + "single-link-effect.ascii", 638);
Clustering<Model> result = //
new ELKIBuilder<>(GeneralizedDBSCAN.class).with(DBSCAN.Parameterizer.EPSILON_ID, //
11.5).with(DBSCAN.Parameterizer.MINPTS_ID, //
120).build().run(db);
testFMeasure(db, result, 0.954382);
testClusterSizes(result, new int[] { 11, 200, 203, 224 });
}
Aggregations