Changeset 12515 for branches/HiveStatistics/sources/HeuristicLab.Tests/HeuristicLab.Problems.DataAnalysis.Symbolic-3.4
- Timestamp:
- 06/25/15 18:21:19 (9 years ago)
- Location:
- branches/HiveStatistics/sources/HeuristicLab.Tests
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/HiveStatistics/sources/HeuristicLab.Tests
- Property svn:mergeinfo changed
/trunk/sources/HeuristicLab.Tests (added) merged: 12482,12488
- Property svn:mergeinfo changed
-
branches/HiveStatistics/sources/HeuristicLab.Tests/HeuristicLab.Problems.DataAnalysis.Symbolic-3.4/SymbolicDataAnalysisExpressionCrossoverTest.cs
r12012 r12515 125 125 stopwatch.Start(); 126 126 for (int i = 0; i != PopulationSize; ++i) { 127 var parent0 = (ISymbolicExpressionTree)trees.S electRandom(twister).Clone();127 var parent0 = (ISymbolicExpressionTree)trees.SampleRandom(twister).Clone(); 128 128 var scopeParent0 = new Scope(); 129 129 scopeParent0.Variables.Add(new Core.Variable(crossover.ParentsParameter.ActualName, parent0)); 130 130 context.Scope.SubScopes.Add(scopeParent0); 131 131 132 var parent1 = (ISymbolicExpressionTree)trees.S electRandom(twister).Clone();132 var parent1 = (ISymbolicExpressionTree)trees.SampleRandom(twister).Clone(); 133 133 var scopeParent1 = new Scope(); 134 134 scopeParent1.Variables.Add(new Core.Variable(crossover.ParentsParameter.ActualName, parent1)); -
branches/HiveStatistics/sources/HeuristicLab.Tests/HeuristicLab.Problems.DataAnalysis.Symbolic-3.4/Util.cs
r12012 r12515 79 79 public static double CalculateEvaluatedNodesPerSec(ISymbolicExpressionTree[] trees, ISymbolicDataAnalysisExpressionTreeInterpreter interpreter, Dataset dataset, int repetitions) { 80 80 // warm up 81 IEnumerable<int> rows = Enumerable.Range(0, dataset.Rows) ;81 IEnumerable<int> rows = Enumerable.Range(0, dataset.Rows).ToList(); 82 82 long nNodes = 0; 83 83 double c = 0;
Note: See TracChangeset
for help on using the changeset viewer.