Free cookie consent management tool by TermsFeed Policy Generator

Changeset 14696


Ignore:
Timestamp:
02/23/17 14:30:23 (8 years ago)
Author:
abeham
Message:

#2457: worked on instance identification

Location:
branches/PerformanceComparison/ProblemInstanceIdentifier
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • branches/PerformanceComparison/ProblemInstanceIdentifier/InstanceExplorer.cs

    r14691 r14696  
    9696      if (memPr.Context.RelinkedPaths.IsEmpty
    9797        || IncludeLocalSearch && memPr.Context.LocalSearchPaths.IsEmpty) {
    98         Console.Write("{0} not all paths present!", problem.Name);
     98        Console.WriteLine("{0} not all paths present!", problem.Name);
    9999        return null;
    100100      };
  • branches/PerformanceComparison/ProblemInstanceIdentifier/Program.cs

    r14691 r14696  
    116116        if (bestMatch.Cls == e.Cls) clsCount++;
    117117        if (bestMatch.Name == e.Name) exactCount++;
     118        var r = ordered.FindIndex((id) => id.Name == e.Name);
     119        if (r < 0) continue;
    118120        totalCount++;
     121        exactRank += r + 1;
    119122        clsRank += ordered.FindIndex((id) => id.Cls == e.Cls) + 1;
    120         exactRank += ordered.FindIndex((id) => id.Name == e.Name) + 1;
    121123      }
    122124
     
    177179      var experimentBase = new Dictionary<InstanceExplorer, List<InstanceDescriptor>>();
    178180      Action<InstanceExplorer> testBody = (expExplorer) => {
    179         var trainingData = GenerateData(instances, expExplorer, parallel);
    180         lock (sync) {
    181           experimentBase.Add(expExplorer, trainingData);
     181        var testData = GenerateData(instances, expExplorer, parallel);
     182        lock (sync) {
     183          experimentBase.Add(expExplorer, testData);
    182184        }
    183185      };
Note: See TracChangeset for help on using the changeset viewer.