Class EvalAssert.EvalAssertion

java.lang.Object
com.tnsai.evaluation.junit.EvalAssert.EvalAssertion
Enclosing class:
EvalAssert

public static class EvalAssert.EvalAssertion extends Object
Assertion chain for evaluation results.
  • Method Details

    • withThreshold

      public EvalAssert.EvalAssertion withThreshold(double threshold)
      Override the default threshold for this assertion.
    • passes

      public void passes()
      Assert all evaluators scored above the threshold.
    • fails

      public void fails()
      Assert all evaluators scored below the threshold (useful for toxicity/bias checks).
    • results

      public List<EvaluationResult> results()
      Get the raw results for custom assertions.