Changeset 13803 for branches/PerformanceComparison/HeuristicLab.OptimizationExpertSystem.Common/3.3/KnowledgeCenter.cs
- Timestamp:
- 04/27/16 16:21:07 (8 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/PerformanceComparison/HeuristicLab.OptimizationExpertSystem.Common/3.3/KnowledgeCenter.cs
r13797 r13803 654 654 var bkq = ((DoubleValue)prob.Parameters["BestKnownQuality"]).Value; 655 655 var ert = ExpectedRuntimeHelper.CalculateErt(pr.ToList(), "QualityPerEvaluations", GetTarget(bkq, target, max), max).ExpectedRuntime; 656 if (double.Is NaN(ert)) ert = int.MaxValue;656 if (double.IsInfinity(ert)) ert = int.MaxValue; 657 657 ds.AddRow(new object[] { pr.Key }.Concat(f.Cast<object>()).Concat(new object[] { ert })); 658 658 } … … 720 720 var values = pr.GroupBy(x => algorithmId2RunMapping.GetBySecond(x).Single()) 721 721 .ToDictionary(x => x.Key, x => ExpectedRuntimeHelper.CalculateErt(x.ToList(), "QualityPerEvaluations", GetTarget(bkq, target, max), max).ExpectedRuntime); 722 var ranks = ClusteringHelper<long>.Cluster(nClasses, values, x => double.Is NaN(x.Value))722 var ranks = ClusteringHelper<long>.Cluster(nClasses, values, x => double.IsInfinity(x.Value)) 723 723 .GetByCluster().ToList(); 724 724 foreach (var c in ranks) {
Note: See TracChangeset
for help on using the changeset viewer.