Changeset 5907
- Timestamp:
- 03/31/11 11:37:45 (14 years ago)
- Location:
- trunk/sources
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/sources/HeuristicLab.Problems.DataAnalysis.Symbolic.Classification/3.4/SingleObjective/SymbolicClassificationSingleObjectiveOverfittingAnalyzer.cs
r5882 r5907 20 20 #endregion 21 21 22 using System.Collections.Generic; 22 23 using System.Linq; 23 24 using HeuristicLab.Analysis; … … 28 29 using HeuristicLab.Parameters; 29 30 using HeuristicLab.Persistence.Default.CompositeSerializers.Storable; 30 using System.Collections.Generic;31 31 32 32 namespace HeuristicLab.Problems.DataAnalysis.Symbolic.Classification { … … 78 78 // evaluate on validation partition 79 79 IEnumerable<int> rows = GenerateRowsToEvaluate(); 80 if ( rows.Count() <= 0) return base.Apply();80 if (!rows.Any()) return base.Apply(); 81 81 82 82 IExecutionContext childContext = (IExecutionContext)ExecutionContext.CreateChildOperation(EvaluatorParameter.ActualValue); -
trunk/sources/HeuristicLab.Problems.DataAnalysis.Symbolic.Regression/3.4/SingleObjective/SymbolicRegressionSingleObjectiveOverfittingAnalyzer.cs
r5882 r5907 20 20 #endregion 21 21 22 using System.Collections.Generic; 22 23 using System.Linq; 23 24 using HeuristicLab.Analysis; … … 28 29 using HeuristicLab.Parameters; 29 30 using HeuristicLab.Persistence.Default.CompositeSerializers.Storable; 30 using System.Collections.Generic;31 31 32 32 namespace HeuristicLab.Problems.DataAnalysis.Symbolic.Regression { … … 76 76 public override IOperation Apply() { 77 77 IEnumerable<int> rows = GenerateRowsToEvaluate(); 78 if ( rows.Count() <= 0) return base.Apply();78 if (!rows.Any()) return base.Apply(); 79 79 80 80 double[] trainingQuality = QualityParameter.ActualValue.Select(x => x.Value).ToArray(); -
trunk/sources/HeuristicLab.Problems.DataAnalysis.Symbolic/3.4/Analyzers/SymbolicDataAnalysisMultiObjectiveValidationBestSolutionAnalyzer.cs
r5882 r5907 30 30 using HeuristicLab.Parameters; 31 31 using HeuristicLab.Persistence.Default.CompositeSerializers.Storable; 32 using HeuristicLab.Random;33 32 34 33 namespace HeuristicLab.Problems.DataAnalysis.Symbolic { … … 76 75 public override IOperation Apply() { 77 76 IEnumerable<int> rows = GenerateRowsToEvaluate(); 78 if ( rows.Count() <= 0) return base.Apply();77 if (!rows.Any()) return base.Apply(); 79 78 80 79 var results = ResultCollection; -
trunk/sources/HeuristicLab.Problems.DataAnalysis.Symbolic/3.4/Analyzers/SymbolicDataAnalysisSingleObjectiveValidationBestSolutionAnalyzer.cs
r5882 r5907 29 29 using HeuristicLab.Parameters; 30 30 using HeuristicLab.Persistence.Default.CompositeSerializers.Storable; 31 using HeuristicLab.Random;32 31 33 32 namespace HeuristicLab.Problems.DataAnalysis.Symbolic { … … 80 79 var evaluator = EvaluatorParameter.ActualValue; 81 80 IEnumerable<int> rows = GenerateRowsToEvaluate(); 82 if ( rows.Count() <= 0) return base.Apply();81 if (!rows.Any()) return base.Apply(); 83 82 84 83 IExecutionContext childContext = (IExecutionContext)ExecutionContext.CreateChildOperation(evaluator);
Note: See TracChangeset
for help on using the changeset viewer.