Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
07/19/17 12:55:58 (7 years ago)
Author:
pkimmesw
Message:

#2665 Started Plush Encoding, Added Zero Error Individual Count Analyzer

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/PushGP/HeuristicLab.PushGP/HeuristicLab.Problems.ProgramSynthesis/Push/Problem/BenchmarkSuite/BenchmarkSuitePushSolutionView.cs

    r15189 r15273  
    5353      var example = Evaluator.Data.Examples[exampleComboBox.SelectedIndex];
    5454
    55       interpreter.SetInput(
    56         integers: example.InputInteger,
    57         floats: example.InputFloat,
    58         booleans: example.InputBoolean,
    59         chars: example.InputChar,
    60         strings: example.InputString,
    61         integerVectors: example.InputIntegerVector,
    62         floatVectors: example.InputFloatVector,
    63         stringVectors: example.InputStringVector);
    64 
    65       //interpreter.BooleanStack.Push(example.InputBoolean);
    66       //interpreter.IntegerStack.Push(example.InputInteger);
    67       //interpreter.FloatStack.Push(example.InputFloat);
    68       //interpreter.CharStack.Push(example.InputChar);
    69       //interpreter.StringStack.Push(example.InputString);
    70       //interpreter.IntegerVectorStack.Push(example.InputIntegerVector.Select(x => x.ToList()).ToList());
    71       //interpreter.FloatVectorStack.Push(example.InputFloatVector.Select(x => x.ToList()).ToList());
    72       //interpreter.StringVectorStack.Push(example.InputStringVector.Select(x => x.ToList()).ToList());
    73       //interpreter.BooleanVectorStack.Push(example.InputBooleanVector.Select(x => x.ToList()).ToList());
     55      interpreter.InitExample(example);
    7456    }
    7557
     
    9274    }
    9375
     76
    9477    protected override void OnContentChanged() {
    9578      if (Content == null) return;
     
    10487      }
    10588
    106       interpreter = pool.Create(Content.Random);
     89      var random = Content.GetRandom();
     90      interpreter = pool.Create(random);
    10791      UpdateExamples(Evaluator.Data);
    10892
     
    181165      grid.Columns.Add(relativeDiffColumn);
    182166
    183       using (var pushInterpreter = pool.Create(Content.Random)) {
     167      var random = Content.GetRandom();
     168      using (var pushInterpreter = pool.Create(random)) {
    184169        var rowIndex = 1;
    185170        for (var i = start; i < end; i++, rowIndex++) {
Note: See TracChangeset for help on using the changeset viewer.