use of de.lmu.ifi.dbs.elki.utilities.ELKIBuilder in project elki by elki-project.
the class HilOutTest method testHilOut.
@Test
public void testHilOut() {
Database db = makeSimpleDatabase(UNITTEST + "outlier-3d-3clusters.ascii", 960);
OutlierResult result = //
new ELKIBuilder<HilOut<DoubleVector>>(HilOut.class).with(HilOut.Parameterizer.K_ID, //
4).with(HilOut.Parameterizer.N_ID, //
200).build().run(db);
testAUC(db, "Noise", result, 0.985398148);
testSingleScore(result, 945, 1.70927657);
}
use of de.lmu.ifi.dbs.elki.utilities.ELKIBuilder in project elki by elki-project.
the class OnlineLOFTest method getDatabase.
/**
* Returns the database.
*/
private static UpdatableDatabase getDatabase() {
UpdatableDatabase db = //
new ELKIBuilder<>(HashmapDatabase.class).with(FileBasedDatabaseConnection.Parameterizer.INPUT_ID, //
dataset).build();
db.initialize();
return db;
}
use of de.lmu.ifi.dbs.elki.utilities.ELKIBuilder in project elki by elki-project.
the class IDOSTest method testToyExample.
@Test
public void testToyExample() {
Database db = makeSimpleDatabase(UNITTEST + "outlier-3d-3clusters.ascii", 960);
OutlierResult result = //
new ELKIBuilder<IDOS<DoubleVector>>(IDOS.class).with(IDOS.Parameterizer.KC_ID, //
100).with(IDOS.Parameterizer.KR_ID, //
20).build().run(db);
testAUC(db, "Noise", result, 0.9194814);
testSingleScore(result, 945, 1.130819);
}
use of de.lmu.ifi.dbs.elki.utilities.ELKIBuilder in project elki by elki-project.
the class INFLOTest method testINFLOPruning.
@Test
public void testINFLOPruning() {
Database db = makeSimpleDatabase(UNITTEST + "outlier-3d-3clusters.ascii", 960);
OutlierResult result = //
new ELKIBuilder<INFLO<DoubleVector>>(INFLO.class).with(INFLO.Parameterizer.M_ID, //
0.5).with(INFLO.Parameterizer.K_ID, 30).build().run(db);
testAUC(db, "Noise", result, 0.94130555);
// Not pruned.
testSingleScore(result, 945, 1.3285178);
result = //
new ELKIBuilder<INFLO<DoubleVector>>(INFLO.class).with(INFLO.Parameterizer.M_ID, //
0.2).with(INFLO.Parameterizer.K_ID, 30).build().run(db);
testAUC(db, "Noise", result, 0.8198611111);
// Pruned.
testSingleScore(result, 945, 1.0);
}
use of de.lmu.ifi.dbs.elki.utilities.ELKIBuilder in project elki by elki-project.
the class COPTest method testCOPRobust.
@Test
public void testCOPRobust() {
Database db = makeSimpleDatabase(UNITTEST + "outlier-parabolic.ascii", 530);
OutlierResult result = //
new ELKIBuilder<COP<DoubleVector>>(COP.class).with(COP.Parameterizer.K_ID, //
30).with(COP.Parameterizer.PCARUNNER_ID, //
AutotuningPCA.class).with(AutotuningPCA.Parameterizer.PCA_COVARIANCE_MATRIX, //
WeightedCovarianceMatrixBuilder.class).with(WeightedCovarianceMatrixBuilder.Parameterizer.WEIGHT_ID, //
ErfcWeight.class).build().run(db);
testAUC(db, "Noise", result, 0.90166666);
testSingleScore(result, 416, 0.25705955);
}
Aggregations