Changeset 5882 for trunk/sources/HeuristicLab.Problems.DataAnalysis.Symbolic/3.4/Analyzers/SymbolicDataAnalysisSingleObjectiveValidationBestSolutionAnalyzer.cs
- Timestamp:
- 03/30/11 13:14:12 (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/sources/HeuristicLab.Problems.DataAnalysis.Symbolic/3.4/Analyzers/SymbolicDataAnalysisSingleObjectiveValidationBestSolutionAnalyzer.cs
r5809 r5882 76 76 double bestQuality = Maximization.Value ? double.NegativeInfinity : double.PositiveInfinity; 77 77 ISymbolicExpressionTree bestTree = null; 78 ISymbolicExpressionTree[] tree = SymbolicExpressionTree s.ToArray();78 ISymbolicExpressionTree[] tree = SymbolicExpressionTree.ToArray(); 79 79 double[] quality = new double[tree.Length]; 80 80 var evaluator = EvaluatorParameter.ActualValue; 81 int start = ValidationPartitionParameter.ActualValue.Start; 82 int end = ValidationPartitionParameter.ActualValue.End; 83 int count = (int)((end - start) * RelativeNumberOfEvaluatedSamplesParameter.ActualValue.Value); 84 if (count <= 0) return base.Apply(); 81 IEnumerable<int> rows = GenerateRowsToEvaluate(); 82 if (rows.Count() <= 0) return base.Apply(); 85 83 86 IEnumerable<int> rows = RandomEnumerable.SampleRandomNumbers(start, end, count);87 84 IExecutionContext childContext = (IExecutionContext)ExecutionContext.CreateChildOperation(evaluator); 88 85 for (int i = 0; i < tree.Length; i++) {
Note: See TracChangeset
for help on using the changeset viewer.