use of com.sri.ai.praise.model.common.io.PagedModelContainer in project aic-praise by aic-sri-international.
the class AbstractEvaluateCLI method run.
public void run(String[] args) throws Exception {
try (EvaluationArgs evaluationArgs = getArgs(args)) {
PagedModelContainer modelsContainer = makeModelsContainer(evaluationArgs);
Evaluation.Configuration configuration = new Evaluation.Configuration(Evaluation.Type.PR, evaluationArgs.workingDirectory, evaluationArgs.numberRunsToAverageOver);
List<SolverEvaluatorConfiguration> solverConfigurations = new ArrayList<>();
for (String solverImplementationClassName : evaluationArgs.solverImplementationClassNames) {
solverConfigurations.add(new SolverEvaluatorConfiguration(solverImplementationClassName, evaluationArgs.totalCPURuntimeLimitSecondsPerSolveAttempt, evaluationArgs.totalMemoryLimitInMegabytesPerSolveAttempt, !evaluationArgs.translateAlways, Collections.emptyMap()));
}
PrintStream notificationOut = evaluationArgs.notificationOut;
PrintStream resultOut = evaluationArgs.resultOut;
evaluate(configuration, modelsContainer, solverConfigurations, notificationOut, resultOut);
}
}
Aggregations