Changeset 16129
- Timestamp:
- 09/10/18 09:02:33 (6 years ago)
- Location:
- branches/2457_ExpertSystem/ProblemInstanceIdentifier
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/2457_ExpertSystem/ProblemInstanceIdentifier/InstanceExplorer.cs
r16096 r16129 27 27 public ISet<string> Features { get; set; } 28 28 29 public bool BestImprovement { get; set; } 30 29 31 public PathRelinkingExplorer() { 30 32 … … 34 36 var calculator = new QAPDirectedWalk { 35 37 Problem = problem, 36 BestImprovement = true,38 BestImprovement = BestImprovement, 37 39 Paths = Paths, 38 40 Seed = seed, -
branches/2457_ExpertSystem/ProblemInstanceIdentifier/Program.cs
r16096 r16129 44 44 using (var writer = File.CreateText("results.csv")) { 45 45 writer.AutoFlush = true; 46 var header = string.Format("{0}\t{1}\t{2}\t{3}\t{4}\t{5}\t{6}\t{7}\t{8}\t{9}\t{10}\t{11} ",47 "Rep", " FSet", "Type", "TrainEff", "TestEff", "ExCnt", "ExRnk", "ClsCnt", "ClsRnk", "TotCnt", "TrainEff2", "TestEff2");46 var header = string.Format("{0}\t{1}\t{2}\t{3}\t{4}\t{5}\t{6}\t{7}\t{8}\t{9}\t{10}\t{11}\t{12}", 47 "Rep", "Dimension", "FSet", "Type", "TrainEff", "TestEff", "ExCnt", "ExRnk", "ClsCnt", "ClsRnk", "TotCnt", "TrainEff2", "TestEff2"); 48 48 writer.WriteLine(header); 49 49 Console.WriteLine(header); … … 55 55 56 56 var explorers = from p in dwPaths 57 select new PathRelinkingExplorer() { Features = feat.Value, Paths = p, Type = type.Value };58 ExploreMatching(writer, instances, explorers.ToArray(), explorers.ToArray(), string.Format("{0}\t{1}\t{2} ", rep, feat.Key, type.Key));57 select new PathRelinkingExplorer() { Features = feat.Value, Paths = p, Type = type.Value, BestImprovement = false }; 58 ExploreMatching(writer, instances, explorers.ToArray(), explorers.ToArray(), string.Format("{0}\t{1}\t{2}\t{3}", rep, dim, feat.Key, type.Key)); 59 59 } 60 60 }
Note: See TracChangeset
for help on using the changeset viewer.