Package com.tnsai.evaluation.junit
Class EvalAssert.EvalAssertion
java.lang.Object
com.tnsai.evaluation.junit.EvalAssert.EvalAssertion
- Enclosing class:
EvalAssert
Assertion chain for evaluation results.
-
Method Summary
Modifier and TypeMethodDescriptionvoidfails()Assert all evaluators scored below the threshold (useful for toxicity/bias checks).voidpasses()Assert all evaluators scored above the threshold.results()Get the raw results for custom assertions.withThreshold(double threshold) Override the default threshold for this assertion.
-
Method Details
-
withThreshold
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
Get the raw results for custom assertions.
-