use of de.lmu.ifi.dbs.elki.utilities.ELKIBuilder in project elki by elki-project.
the class FeatureBaggingTest method testFeatureBaggingBreadth.
@Test
public void testFeatureBaggingBreadth() {
Database db = makeSimpleDatabase(UNITTEST + "outlier-axis-subspaces-6d.ascii", 1345);
OutlierResult result = //
new ELKIBuilder<>(FeatureBagging.class).with(LOF.Parameterizer.K_ID, //
10).with(FeatureBagging.Parameterizer.NUM_ID, //
10).with(FeatureBagging.Parameterizer.SEED_ID, //
5).with(//
FeatureBagging.Parameterizer.BREADTH_ID).build().run(db);
testAUC(db, "Noise", result, 0.92470588);
testSingleScore(result, 1293, 1.2047264);
}
use of de.lmu.ifi.dbs.elki.utilities.ELKIBuilder in project elki by elki-project.
the class AggarwalYuEvolutionaryTest method testAggarwalYuEvolutionary.
@Test
public void testAggarwalYuEvolutionary() {
Database db = makeSimpleDatabase(UNITTEST + "outlier-3d-3clusters.ascii", 960);
OutlierResult result = //
new ELKIBuilder<AggarwalYuEvolutionary<DoubleVector>>(AggarwalYuEvolutionary.class).with(AggarwalYuEvolutionary.Parameterizer.K_ID, //
2).with(AggarwalYuEvolutionary.Parameterizer.PHI_ID, //
8).with(AggarwalYuEvolutionary.Parameterizer.M_ID, //
20).with(AggarwalYuEvolutionary.Parameterizer.SEED_ID, //
0).build().run(db);
testAUC(db, "Noise", result, 0.653888888888);
testSingleScore(result, 945, 0.0);
}
use of de.lmu.ifi.dbs.elki.utilities.ELKIBuilder in project elki by elki-project.
the class SODTest method testSOD.
@Test
public void testSOD() {
Database db = makeSimpleDatabase(UNITTEST + "outlier-axis-subspaces-6d.ascii", 1345);
OutlierResult result = //
new ELKIBuilder<SOD<DoubleVector>>(SOD.class).with(SOD.Parameterizer.KNN_ID, //
25).with(SharedNearestNeighborPreprocessor.Factory.NUMBER_OF_NEIGHBORS_ID, //
19).build().run(db);
testSingleScore(result, 1293, 1.5167500);
testAUC(db, "Noise", result, 0.949131652);
}
use of de.lmu.ifi.dbs.elki.utilities.ELKIBuilder in project elki by elki-project.
the class AggarwalYuNaiveTest method testAggarwalYuNaive.
@Test
public void testAggarwalYuNaive() {
Database db = makeSimpleDatabase(UNITTEST + "outlier-3d-3clusters.ascii", 960);
OutlierResult result = //
new ELKIBuilder<AggarwalYuNaive<DoubleVector>>(AggarwalYuNaive.class).with(AggarwalYuNaive.Parameterizer.K_ID, //
2).with(AggarwalYuNaive.Parameterizer.PHI_ID, //
8).build().run(db);
testAUC(db, "Noise", result, 0.9007777777777);
testSingleScore(result, 945, -2.862640213982);
}
use of de.lmu.ifi.dbs.elki.utilities.ELKIBuilder in project elki by elki-project.
the class CASHTest method testCASHResults.
/**
* Run CASH with fixed parameters and compare the result to a golden standard.
*/
@Test
public void testCASHResults() {
Database db = makeSimpleDatabase(UNITTEST + "hierarchical-3d2d1d.csv", 600);
Clustering<Model> result = //
new ELKIBuilder<CASH<DoubleVector>>(CASH.class).with(CASH.Parameterizer.JITTER_ID, //
0.7).with(CASH.Parameterizer.MINPTS_ID, //
50).with(CASH.Parameterizer.MAXLEVEL_ID, //
25).with(//
CASH.Parameterizer.ADJUST_ID).build().run(db);
// with hierarchical pairs: 0.64102
testFMeasure(db, result, 0.50074);
testClusterSizes(result, new int[] { 18, 80, 252, 468 });
}
Aggregations