Changeset 5882 for trunk/sources/HeuristicLab.Problems.DataAnalysis.Symbolic.Classification/3.4/SingleObjective
- Timestamp:
- 03/30/11 13:14:12 (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/sources/HeuristicLab.Problems.DataAnalysis.Symbolic.Classification/3.4/SingleObjective/SymbolicClassificationSingleObjectiveOverfittingAnalyzer.cs
r5858 r5882 28 28 using HeuristicLab.Parameters; 29 29 using HeuristicLab.Persistence.Default.CompositeSerializers.Storable; 30 using System.Collections.Generic; 30 31 31 32 namespace HeuristicLab.Problems.DataAnalysis.Symbolic.Classification { … … 76 77 double[] trainingQuality = QualityParameter.ActualValue.Select(x => x.Value).ToArray(); 77 78 // evaluate on validation partition 78 int start = ValidationPartitionParameter.ActualValue.Start; 79 int end = ValidationPartitionParameter.ActualValue.End; 80 var rows = Enumerable.Range(start, end - start); 81 if (!rows.Any()) return base.Apply(); 79 IEnumerable<int> rows = GenerateRowsToEvaluate(); 80 if (rows.Count() <= 0) return base.Apply(); 82 81 83 82 IExecutionContext childContext = (IExecutionContext)ExecutionContext.CreateChildOperation(EvaluatorParameter.ActualValue); 84 double[] validationQuality = (from tree in SymbolicExpressionTree s83 double[] validationQuality = (from tree in SymbolicExpressionTree 85 84 select EvaluatorParameter.ActualValue.Evaluate(childContext, tree, ProblemDataParameter.ActualValue, rows)) 86 85 .ToArray();
Note: See TracChangeset
for help on using the changeset viewer.