Search in sources :

Example 51 with OutlierResult

use of de.lmu.ifi.dbs.elki.result.outlier.OutlierResult in project elki by elki-project.

the class ReferenceBasedOutlierDetectionTest method testReferenceBasedOutlierDetectionGridBased.

@Test
public void testReferenceBasedOutlierDetectionGridBased() {
    Database db = makeSimpleDatabase(UNITTEST + "outlier-3d-3clusters.ascii", 960);
    OutlierResult result = // 
    new ELKIBuilder<>(ReferenceBasedOutlierDetection.class).with(ReferenceBasedOutlierDetection.Parameterizer.K_ID, // 
    11).with(GridBasedReferencePoints.Parameterizer.GRID_ID, // 
    3).build().run(db);
    testAUC(db, "Noise", result, 0.9693703703703);
    testSingleScore(result, 945, 0.933574455);
}
Also used : ELKIBuilder(de.lmu.ifi.dbs.elki.utilities.ELKIBuilder) Database(de.lmu.ifi.dbs.elki.database.Database) OutlierResult(de.lmu.ifi.dbs.elki.result.outlier.OutlierResult) Test(org.junit.Test) AbstractOutlierAlgorithmTest(de.lmu.ifi.dbs.elki.algorithm.outlier.AbstractOutlierAlgorithmTest)

Example 52 with OutlierResult

use of de.lmu.ifi.dbs.elki.result.outlier.OutlierResult in project elki by elki-project.

the class ReferenceBasedOutlierDetectionTest method testReferenceBasedOutlierDetectionSample.

@Test
public void testReferenceBasedOutlierDetectionSample() {
    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, // 
    RandomSampleReferencePoints.class).with(RandomSampleReferencePoints.Parameterizer.N_ID, // 
    15).with(RandomSampleReferencePoints.Parameterizer.RANDOM_ID, // 
    0).build().run(db);
    testAUC(db, "Noise", result, 0.829814814);
    testSingleScore(result, 945, 0.846881387);
}
Also used : ELKIBuilder(de.lmu.ifi.dbs.elki.utilities.ELKIBuilder) Database(de.lmu.ifi.dbs.elki.database.Database) OutlierResult(de.lmu.ifi.dbs.elki.result.outlier.OutlierResult) Test(org.junit.Test) AbstractOutlierAlgorithmTest(de.lmu.ifi.dbs.elki.algorithm.outlier.AbstractOutlierAlgorithmTest)

Example 53 with OutlierResult

use of de.lmu.ifi.dbs.elki.result.outlier.OutlierResult in project elki by elki-project.

the class ReferenceBasedOutlierDetectionTest method testReferenceBasedOutlierDetectionStar.

@Test
public void testReferenceBasedOutlierDetectionStar() {
    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, // 
    StarBasedReferencePoints.class).build().run(db);
    testAUC(db, "Noise", result, 0.910722222);
    testSingleScore(result, 945, 0.920950222);
}
Also used : ELKIBuilder(de.lmu.ifi.dbs.elki.utilities.ELKIBuilder) Database(de.lmu.ifi.dbs.elki.database.Database) OutlierResult(de.lmu.ifi.dbs.elki.result.outlier.OutlierResult) Test(org.junit.Test) AbstractOutlierAlgorithmTest(de.lmu.ifi.dbs.elki.algorithm.outlier.AbstractOutlierAlgorithmTest)

Example 54 with OutlierResult

use of de.lmu.ifi.dbs.elki.result.outlier.OutlierResult 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);
}
Also used : ELKIBuilder(de.lmu.ifi.dbs.elki.utilities.ELKIBuilder) Database(de.lmu.ifi.dbs.elki.database.Database) OutlierResult(de.lmu.ifi.dbs.elki.result.outlier.OutlierResult) Test(org.junit.Test) AbstractOutlierAlgorithmTest(de.lmu.ifi.dbs.elki.algorithm.outlier.AbstractOutlierAlgorithmTest)

Example 55 with OutlierResult

use of de.lmu.ifi.dbs.elki.result.outlier.OutlierResult 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);
}
Also used : ELKIBuilder(de.lmu.ifi.dbs.elki.utilities.ELKIBuilder) Database(de.lmu.ifi.dbs.elki.database.Database) OutlierResult(de.lmu.ifi.dbs.elki.result.outlier.OutlierResult) Test(org.junit.Test) AbstractOutlierAlgorithmTest(de.lmu.ifi.dbs.elki.algorithm.outlier.AbstractOutlierAlgorithmTest)

Aggregations

OutlierResult (de.lmu.ifi.dbs.elki.result.outlier.OutlierResult)144 MaterializedDoubleRelation (de.lmu.ifi.dbs.elki.database.relation.MaterializedDoubleRelation)72 OutlierScoreMeta (de.lmu.ifi.dbs.elki.result.outlier.OutlierScoreMeta)72 WritableDoubleDataStore (de.lmu.ifi.dbs.elki.database.datastore.WritableDoubleDataStore)71 DoubleRelation (de.lmu.ifi.dbs.elki.database.relation.DoubleRelation)71 Database (de.lmu.ifi.dbs.elki.database.Database)69 DoubleMinMax (de.lmu.ifi.dbs.elki.math.DoubleMinMax)62 Test (org.junit.Test)58 DBIDIter (de.lmu.ifi.dbs.elki.database.ids.DBIDIter)57 AbstractOutlierAlgorithmTest (de.lmu.ifi.dbs.elki.algorithm.outlier.AbstractOutlierAlgorithmTest)50 DBIDs (de.lmu.ifi.dbs.elki.database.ids.DBIDs)45 BasicOutlierScoreMeta (de.lmu.ifi.dbs.elki.result.outlier.BasicOutlierScoreMeta)35 ELKIBuilder (de.lmu.ifi.dbs.elki.utilities.ELKIBuilder)26 FiniteProgress (de.lmu.ifi.dbs.elki.logging.progress.FiniteProgress)23 DoubleVector (de.lmu.ifi.dbs.elki.data.DoubleVector)22 KNNList (de.lmu.ifi.dbs.elki.database.ids.KNNList)18 InvertedOutlierScoreMeta (de.lmu.ifi.dbs.elki.result.outlier.InvertedOutlierScoreMeta)13 ProbabilisticOutlierScore (de.lmu.ifi.dbs.elki.result.outlier.ProbabilisticOutlierScore)13 QuotientOutlierScoreMeta (de.lmu.ifi.dbs.elki.result.outlier.QuotientOutlierScoreMeta)13 DoubleDBIDListIter (de.lmu.ifi.dbs.elki.database.ids.DoubleDBIDListIter)11