use of de.lmu.ifi.dbs.elki.data.model.Model 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.data.model.Model 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.data.model.Model 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 });
}
use of de.lmu.ifi.dbs.elki.data.model.Model in project elki by elki-project.
the class ParallelGeneralizedDBSCANTest method testParallelDBSCANResults.
/**
* Run Generalized DBSCAN with fixed parameters and compare the result to a
* golden standard.
*/
@Test
public void testParallelDBSCANResults() {
Database db = makeSimpleDatabase(UNITTEST + "3clusters-and-noise-2d.csv", 330);
Clustering<Model> result = //
new ELKIBuilder<>(ParallelGeneralizedDBSCAN.class).with(DBSCAN.Parameterizer.EPSILON_ID, //
0.04).with(DBSCAN.Parameterizer.MINPTS_ID, //
20).build().run(db);
testFMeasure(db, result, 0.996413);
testClusterSizes(result, new int[] { 29, 50, 101, 150 });
}
use of de.lmu.ifi.dbs.elki.data.model.Model in project elki by elki-project.
the class LMCLUSTest method testLMCLUSOverlap.
/**
* Run LMCLUS with fixed parameters and compare the result to a golden standard.
*/
@Test
public void testLMCLUSOverlap() {
Database db = makeSimpleDatabase(UNITTEST + "correlation-overlap-3-5d.ascii", 650);
Clustering<Model> result = //
new ELKIBuilder<>(LMCLUS.class).with(LMCLUS.Parameterizer.MINSIZE_ID, //
100).with(LMCLUS.Parameterizer.THRESHOLD_ID, //
10).with(LMCLUS.Parameterizer.RANDOM_ID, //
0).build().run(db);
testClusterSizes(result, new int[] { 200, 201, 249 });
testFMeasure(db, result, 0.921865);
}
Aggregations