Free cookie consent management tool by TermsFeed Policy Generator

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

#2457: worked on instance identification

File:
1 edited

Legend:

Unmodified
Added
Removed
  • 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.