use of de.lmu.ifi.dbs.elki.result.outlier.OutlierResult in project elki by elki-project.
the class ParallelKNNOutlierTest method testKNNOutlier.
@Test
public void testKNNOutlier() {
Database db = makeSimpleDatabase(UNITTEST + "outlier-3d-3clusters.ascii", 960);
OutlierResult result = //
new ELKIBuilder<ParallelKNNOutlier<DoubleVector>>(ParallelKNNOutlier.class).with(KNNOutlier.Parameterizer.K_ID, 1).build().run(db);
testSingleScore(result, 945, 0.4793554700168577);
testAUC(db, "Noise", result, 0.991462962962963);
}
use of de.lmu.ifi.dbs.elki.result.outlier.OutlierResult in project elki by elki-project.
the class ODINTest method testODIN.
@Test
public void testODIN() {
Database db = makeSimpleDatabase(UNITTEST + "outlier-3d-3clusters.ascii", 960);
OutlierResult result = //
new ELKIBuilder<ODIN<DoubleVector>>(ODIN.class).with(ODIN.Parameterizer.K_ID, 10).build().run(db);
testSingleScore(result, 945, 0.7);
testAUC(db, "Noise", result, 0.9142037037);
}
use of de.lmu.ifi.dbs.elki.result.outlier.OutlierResult in project elki by elki-project.
the class ISOSTest method testToyExample.
@Test
public void testToyExample() {
Database db = makeSimpleDatabase(UNITTEST + "outlier-3d-3clusters.ascii", 960);
OutlierResult result = //
new ELKIBuilder<ISOS<DoubleVector>>(ISOS.class).with(ISOS.Parameterizer.KNN_ID, 100).build().run(db);
testAUC(db, "Noise", result, 0.946333);
testSingleScore(result, 945, 0.05128157);
}
use of de.lmu.ifi.dbs.elki.result.outlier.OutlierResult 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.result.outlier.OutlierResult in project elki by elki-project.
the class FlexibleLOFTest method testFlexibleLOF.
@Test
public void testFlexibleLOF() {
Database db = makeSimpleDatabase(UNITTEST + "outlier-axis-subspaces-6d.ascii", 1345);
OutlierResult result = //
new ELKIBuilder<FlexibleLOF<DoubleVector>>(FlexibleLOF.class).with(FlexibleLOF.Parameterizer.KREF_ID, 10).build().run(db);
testSingleScore(result, 1293, 1.1945314199156365);
testAUC(db, "Noise", result, 0.8921680672268908);
}
Aggregations