- Timestamp:
- 08/17/10 16:39:11 (14 years ago)
- Location:
- branches/DataAnalysis/HeuristicLab.Problems.DataAnalysis.Regression/3.3/Symbolic
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/DataAnalysis/HeuristicLab.Problems.DataAnalysis.Regression/3.3/Symbolic/Analyzers/FixedValidationBestScaledSymbolicRegressionSolutionAnalyzer.cs
r4225 r4244 256 256 int validationStart = ValidiationSamplesStart.Value; 257 257 int validationEnd = ValidationSamplesEnd.Value; 258 uint seed = (uint)Random.Next();258 int seed = Random.Next(); 259 259 int count = (int)((validationEnd - validationStart) * RelativeNumberOfEvaluatedSamples.Value); 260 260 if (count == 0) count = 1; -
branches/DataAnalysis/HeuristicLab.Problems.DataAnalysis.Regression/3.3/Symbolic/Evaluators/MultiObjectiveSymbolicRegressionEvaluator.cs
r4128 r4244 121 121 122 122 public override IOperation Apply() { 123 uint seed = (uint)Random.Next();123 int seed = Random.Next(); 124 124 IEnumerable<int> rows = SingleObjectiveSymbolicRegressionEvaluator.GenerateRowsToEvaluate(seed, RelativeNumberOfEvaluatedSamples.Value, SamplesStart.Value, SamplesEnd.Value); 125 125 double[] qualities = Evaluate(SymbolicExpressionTreeInterpreter, SymbolicExpressionTree, RegressionProblemData.Dataset, -
branches/DataAnalysis/HeuristicLab.Problems.DataAnalysis.Regression/3.3/Symbolic/Evaluators/SingleObjectiveSymbolicRegressionEvaluator.cs
r4195 r4244 139 139 140 140 public override IOperation Apply() { 141 uint seed = (uint)Random.Next();141 int seed = Random.Next(); 142 142 IEnumerable<int> rows = GenerateRowsToEvaluate(seed, RelativeNumberOfEvaluatedSamples.Value, SamplesStart.Value, SamplesEnd.Value); 143 143 double quality = Evaluate(SymbolicExpressionTreeInterpreter, SymbolicExpressionTree, LowerEstimationLimit.Value, UpperEstimationLimit.Value, … … 149 149 150 150 151 internal static IEnumerable<int> GenerateRowsToEvaluate( uint seed, double relativeAmount, int start, int end) {151 internal static IEnumerable<int> GenerateRowsToEvaluate(int seed, double relativeAmount, int start, int end) { 152 152 if (end < start) throw new ArgumentException("Start value is larger than end value."); 153 153 int count = (int)((end - start) * relativeAmount);
Note: See TracChangeset
for help on using the changeset viewer.