Package com.tnsai.evaluation.autoharness
Class RegressionGate
java.lang.Object
com.tnsai.evaluation.autoharness.RegressionGate
Runs an eval suite and gates on a pass rate threshold.
Given a list of EvalCases, converts them into a
TestDataset and executes via BenchmarkRunner.
The gate passes if the overall pass rate meets the configured threshold.
- Since:
- 0.1.0
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final recordResult of a regression gate evaluation. -
Constructor Summary
ConstructorsConstructorDescriptionRegressionGate(BenchmarkRunner runner, double passRateThreshold, double scoreThreshold) -
Method Summary
Modifier and TypeMethodDescriptionRuns the eval cases and returns the gate result.
-
Constructor Details
-
RegressionGate
- Parameters:
runner- configured BenchmarkRunner to execute eval casespassRateThreshold- fraction of cases that must pass [0.0, 1.0]scoreThreshold- minimum score for a case to be considered passing [0.0, 1.0]
-
-
Method Details
-
evaluate
Runs the eval cases and returns the gate result.- Parameters:
evalCases- generated regression test cases- Returns:
- gate result with pass/fail and details
-