- Timestamp:
- 12/16/15 17:04:35 (9 years ago)
- Location:
- branches/PerformanceComparison
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/PerformanceComparison
- Property svn:ignore
-
old new 2 2 *.suo 3 3 *.user 4 .git 5 .gitignore
-
- Property svn:ignore
-
branches/PerformanceComparison/HeuristicLab.OptimizationExpertSystem/3.3/ExpertSystem.cs
r12957 r13475 71 71 algorithmInstances = value; 72 72 OnPropertyChanged("AlgorithmInstances"); 73 // TODO: Attach event handlers 73 74 } 74 75 } … … 155 156 var runCollection = sender as RunCollection; 156 157 if (runCollection != null && runCollection.UpdateOfRunsInProgress) return; 157 UpdateInstanceMap();158 158 UpdateSuggestions(); 159 159 } 160 160 161 p rivatevoid UpdateInstanceMap() {161 public void UpdateInstanceMap() { 162 162 var flaValues = ProblemInstances.ResultNames 163 163 .Where(x => x.StartsWith("Characteristic.") … … 203 203 } else instance.Results.Add("Projection.PCA2", new DoubleValue(y)); 204 204 205 instanceCounter++; 206 205 207 var bkQuality = ((DoubleValue)instance.Parameters["BestKnownQuality"]).Value; 206 208 var maximization = ((BoolValue)instance.Parameters["Maximization"]).Value; 209 210 if (!algInstRunDict.ContainsKey(probInstanceName)) continue; 207 211 foreach (var kvp in algInstRunDict[probInstanceName]) { 208 212 var algInstanceName = kvp.Key; 209 foreach (var run in kvp.Value) { 210 // TODO: Things needs to be configurable here (table name, targets) 211 foreach (var target in new[] { 1, 1.01, 1.05, 1.1, 1.2, 1.5 }) { 212 var result = ExpectedRuntimeHelper.CalculateErt(kvp.Value, "QualityPerEvaluations", bkQuality * target, maximization); 213 var resultName = algInstanceName + "@" + ((target - 1) * 100) + "%"; 214 if (run.Results.TryGetValue(resultName, out item)) 215 ((DoubleValue)item).Value = result.ExpectedRuntime; 216 else run.Results.Add(resultName, new DoubleValue(result.ExpectedRuntime)); 217 } 213 // TODO: Things needs to be configurable here (table name, targets) 214 foreach (var target in new[] { 1, 1.01, 1.05, 1.1, 1.2, 1.5 }) { 215 var result = ExpectedRuntimeHelper.CalculateErt(kvp.Value, "QualityPerEvaluations", bkQuality * target, maximization); 216 var resultName = algInstanceName + "@" + ((target - 1) * 100) + "%"; 217 if (instance.Results.TryGetValue(resultName, out item)) { 218 ((DoubleValue)item).Value = Math.Log10(result.ExpectedRuntime); 219 } else instance.Results.Add(resultName, new DoubleValue(Math.Log10(result.ExpectedRuntime))); 218 220 } 219 221 }
Note: See TracChangeset
for help on using the changeset viewer.