use of de.lmu.ifi.dbs.elki.utilities.ELKIBuilder in project elki by elki-project.
the class ReferenceBasedOutlierDetectionTest method testReferenceBasedOutlierDetectionAxis.
@Test
public void testReferenceBasedOutlierDetectionAxis() {
Database db = makeSimpleDatabase(UNITTEST + "outlier-3d-3clusters.ascii", 960);
OutlierResult result = //
new ELKIBuilder<>(ReferenceBasedOutlierDetection.class).with(ReferenceBasedOutlierDetection.Parameterizer.K_ID, //
11).with(ReferenceBasedOutlierDetection.Parameterizer.REFP_ID, //
AxisBasedReferencePoints.class).build().run(db);
testAUC(db, "Noise", result, 0.858953703);
testSingleScore(result, 945, 0.9193032738);
}
use of de.lmu.ifi.dbs.elki.utilities.ELKIBuilder in project elki by elki-project.
the class ReferenceBasedOutlierDetectionTest method testReferenceBasedOutlierDetectionGenerated.
@Test
public void testReferenceBasedOutlierDetectionGenerated() {
Database db = makeSimpleDatabase(UNITTEST + "outlier-3d-3clusters.ascii", 960);
OutlierResult result = //
new ELKIBuilder<>(ReferenceBasedOutlierDetection.class).with(ReferenceBasedOutlierDetection.Parameterizer.K_ID, //
11).with(ReferenceBasedOutlierDetection.Parameterizer.REFP_ID, //
RandomGeneratedReferencePoints.class).with(RandomGeneratedReferencePoints.Parameterizer.N_ID, //
15).with(RandomGeneratedReferencePoints.Parameterizer.RANDOM_ID, //
0).build().run(db);
testAUC(db, "Noise", result, 0.878203703);
testSingleScore(result, 945, 0.910430564);
}
use of de.lmu.ifi.dbs.elki.utilities.ELKIBuilder in project elki by elki-project.
the class ALOCITest method testALOCI.
@Test
public void testALOCI() {
Database db = makeSimpleDatabase(UNITTEST + "3clusters-and-noise-2d.csv", 330);
OutlierResult result = //
new ELKIBuilder<ALOCI<DoubleVector>>(ALOCI.class).with(ALOCI.Parameterizer.SEED_ID, //
2).with(ALOCI.Parameterizer.GRIDS_ID, //
3).build().run(db);
testAUC(db, "Noise", result, 0.7622222);
testSingleScore(result, 146, 1.1305337);
}
use of de.lmu.ifi.dbs.elki.utilities.ELKIBuilder in project elki by elki-project.
the class LDFTest method testLDF.
@Test
public void testLDF() {
Database db = makeSimpleDatabase(UNITTEST + "outlier-axis-subspaces-6d.ascii", 1345);
OutlierResult result = //
new ELKIBuilder<LDF<DoubleVector>>(LDF.class).with(LDF.Parameterizer.K_ID, //
10).with(LDF.Parameterizer.H_ID, //
1).build().run(db);
testSingleScore(result, 1293, 3.158819);
testAUC(db, "Noise", result, 0.9127619);
}
use of de.lmu.ifi.dbs.elki.utilities.ELKIBuilder in project elki by elki-project.
the class DBSCANTest method testDBSCANOnSingleLinkDataset.
/**
* Run 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<DBSCAN<DoubleVector>>(DBSCAN.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