Class AgentBenchmarkSuite.BenchmarkReport
java.lang.Object
neqsim.util.agentic.AgentBenchmarkSuite.BenchmarkReport
- All Implemented Interfaces:
Serializable
- Enclosing class:
AgentBenchmarkSuite
Aggregate report for the full benchmark suite evaluation.
- Version:
- 1.0
- Author:
- Even Solbraa
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final intprivate final intprivate final intprivate final List<AgentBenchmarkSuite.ProblemResult> private static final longprivate final String -
Constructor Summary
ConstructorsConstructorDescriptionBenchmarkReport(String suiteName, List<AgentBenchmarkSuite.ProblemResult> results, int passed, int failed, int notAttempted) Creates a new benchmark report. -
Method Summary
Modifier and TypeMethodDescriptiondoubleReturns the convergence rate as a fraction of total problems that either passed or were attempted.intReturns the number of failed problems.Returns only the failed problem results.intReturns the number of not-attempted problems.intReturns the number of passed problems.doubleReturns the pass rate as a fraction (0.0 to 1.0) of attempted problems.Returns all individual problem results.Returns results filtered by problem category.toJson()Serializes the benchmark report to JSON.
-
Field Details
-
serialVersionUID
private static final long serialVersionUID- See Also:
-
suiteName
-
results
-
passed
private final int passed -
failed
private final int failed -
notAttempted
private final int notAttempted
-
-
Constructor Details
-
BenchmarkReport
public BenchmarkReport(String suiteName, List<AgentBenchmarkSuite.ProblemResult> results, int passed, int failed, int notAttempted) Creates a new benchmark report.- Parameters:
suiteName- the name of the benchmark suiteresults- individual problem resultspassed- number of passed problemsfailed- number of failed problemsnotAttempted- number of problems not attempted
-
-
Method Details
-
getPassRate
public double getPassRate()Returns the pass rate as a fraction (0.0 to 1.0) of attempted problems.- Returns:
- the pass rate, or 0.0 if no problems were attempted
-
getConvergenceRate
public double getConvergenceRate()Returns the convergence rate as a fraction of total problems that either passed or were attempted.- Returns:
- the convergence rate
-
getPassed
public int getPassed()Returns the number of passed problems.- Returns:
- passed count
-
getFailed
public int getFailed()Returns the number of failed problems.- Returns:
- failed count
-
getNotAttempted
public int getNotAttempted()Returns the number of not-attempted problems.- Returns:
- not-attempted count
-
getFailedProblems
Returns only the failed problem results.- Returns:
- list of failed problem results
-
getResults
Returns all individual problem results.- Returns:
- unmodifiable list of all results
-
getResultsByCategory
public List<AgentBenchmarkSuite.ProblemResult> getResultsByCategory(AgentBenchmarkSuite.ProblemCategory category) Returns results filtered by problem category.- Parameters:
category- the category to filter by- Returns:
- list of results in that category
-
toJson
-