Search in sources :

Example 1 with PercentageScore

use of org.opensearch.search.aggregations.bucket.terms.heuristic.PercentageScore in project OpenSearch by opensearch-project.

the class SignificanceHeuristicTests method testAssertions.

public void testAssertions() throws Exception {
    testBackgroundAssertions(new MutualInformation(true, true), new MutualInformation(true, false));
    testBackgroundAssertions(new ChiSquare(true, true), new ChiSquare(true, false));
    testBackgroundAssertions(new GND(true), new GND(false));
    testAssertions(new PercentageScore());
    testAssertions(new JLHScore());
}
Also used : JLHScore(org.opensearch.search.aggregations.bucket.terms.heuristic.JLHScore) ChiSquare(org.opensearch.search.aggregations.bucket.terms.heuristic.ChiSquare) MutualInformation(org.opensearch.search.aggregations.bucket.terms.heuristic.MutualInformation) GND(org.opensearch.search.aggregations.bucket.terms.heuristic.GND) PercentageScore(org.opensearch.search.aggregations.bucket.terms.heuristic.PercentageScore)

Example 2 with PercentageScore

use of org.opensearch.search.aggregations.bucket.terms.heuristic.PercentageScore in project OpenSearch by opensearch-project.

the class SignificanceHeuristicTests method testBasicScoreProperties.

public void testBasicScoreProperties() {
    basicScoreProperties(new JLHScore(), true);
    basicScoreProperties(new GND(true), true);
    basicScoreProperties(new PercentageScore(), true);
    basicScoreProperties(new MutualInformation(true, true), false);
    basicScoreProperties(new ChiSquare(true, true), false);
}
Also used : JLHScore(org.opensearch.search.aggregations.bucket.terms.heuristic.JLHScore) ChiSquare(org.opensearch.search.aggregations.bucket.terms.heuristic.ChiSquare) MutualInformation(org.opensearch.search.aggregations.bucket.terms.heuristic.MutualInformation) GND(org.opensearch.search.aggregations.bucket.terms.heuristic.GND) PercentageScore(org.opensearch.search.aggregations.bucket.terms.heuristic.PercentageScore)

Aggregations

ChiSquare (org.opensearch.search.aggregations.bucket.terms.heuristic.ChiSquare)2 GND (org.opensearch.search.aggregations.bucket.terms.heuristic.GND)2 JLHScore (org.opensearch.search.aggregations.bucket.terms.heuristic.JLHScore)2 MutualInformation (org.opensearch.search.aggregations.bucket.terms.heuristic.MutualInformation)2 PercentageScore (org.opensearch.search.aggregations.bucket.terms.heuristic.PercentageScore)2