Examples of ProblemPerformanceTuple


Examples of org.jamesii.asf.spdm.dataimport.ProblemPerformanceTuple

            extractFeaturePerformanceTuples(problem, rtConfig, perfData);

        // Check whether features are same for all applications - only
        // create *one* performance tuple if that is the case
        if (allFeaturesEqual(results)) {
          perfTuples.add(new ProblemPerformanceTuple(problem, results.get(0)
              .getFirstValue(), config, targetPerfType
              .getPerformanceMeasurerFactory(), sumPerformance(results)
              / results.size()));
        } else {
          for (Pair<Features, Double> perfFeaturesTuple : results) {
            perfTuples.add(new ProblemPerformanceTuple(problem,
                perfFeaturesTuple.getFirstValue(), config, targetPerfType
                    .getPerformanceMeasurerFactory(), perfFeaturesTuple
                    .getSecondValue()));
          }
        }
View Full Code Here

Examples of org.jamesii.asf.spdm.dataimport.ProblemPerformanceTuple

        resultTupleMap.put(problemID, configTupleMap);
      }
      List<Double> performanceList = configPerformanceMap.get(config);
      if (performanceList == null) {
        performanceList = new ArrayList<>();
        ProblemPerformanceTuple resultTuple =
            new ProblemPerformanceTuple(tuple.getProblemSchemeURI(),
                tuple.getProblemSchemeParameters(),
                tuple.getProblemDefinitionID(),
                tuple.getProblemDefinitionParameters(), tuple.getFeatures(),
                config, perfMeasureFactory, 0.0);
        configTupleMap.put(config, resultTuple);
        configPerformanceMap.put(config, performanceList);
      }
      performanceList.add(tuple.getPerformance());
    }

    for (Map.Entry<Long, Map<Configuration, List<Double>>> entry : map
        .entrySet()) {
      Long problemId = entry.getKey();
      for (Map.Entry<Configuration, List<Double>> entry2 : entry.getValue()
          .entrySet()) {
        Configuration config = entry2.getKey();
        List<Double> performances = entry2.getValue();
        Double performance = getAggregatedPerformance(performances);
        ProblemPerformanceTuple resultTuple =
            resultTupleMap.get(problemId).get(config);
        resultTuple.setPerformance(performance);
        result.add(resultTuple);
      }
    }
    return result;
  }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.