Changeset 15390
- Timestamp:
- 09/29/17 16:46:24 (7 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/sources/HeuristicLab.Problems.DataAnalysis.Symbolic.Regression.Views/3.4/InteractiveSymbolicRegressionSolutionSimplifierView.cs
r15371 r15390 46 46 protected override ISymbolicExpressionTree OptimizeConstants(ISymbolicDataAnalysisModel model, IDataAnalysisProblemData problemData, IProgress progress) { 47 47 const int constOptIterations = 50; 48 var regressionModel Model= (ISymbolicDataAnalysisModel)model.Clone();48 var regressionModel = (ISymbolicDataAnalysisModel)model.Clone(); 49 49 var regressionProblemData = (IRegressionProblemData)problemData; 50 SymbolicRegressionConstantOptimizationEvaluator.OptimizeConstants(regressionModel Model.Interpreter, regressionModelModel.SymbolicExpressionTree, regressionProblemData, regressionProblemData.TrainingIndices,51 applyLinearScaling: true, maxIterations: constOptIterations, updateVariableWeights: true, lowerEstimationLimit: regressionModel Model.LowerEstimationLimit, upperEstimationLimit: regressionModelModel.UpperEstimationLimit,50 SymbolicRegressionConstantOptimizationEvaluator.OptimizeConstants(regressionModel.Interpreter, regressionModel.SymbolicExpressionTree, regressionProblemData, regressionProblemData.TrainingIndices, 51 applyLinearScaling: true, maxIterations: constOptIterations, updateVariableWeights: true, lowerEstimationLimit: regressionModel.LowerEstimationLimit, upperEstimationLimit: regressionModel.UpperEstimationLimit, 52 52 iterationCallback: (args, func, obj) => { 53 53 double newProgressValue = progress.ProgressValue + 1.0 / (constOptIterations + 2); // (maxIterations + 2) iterations are reported 54 54 progress.ProgressValue = Math.Min(newProgressValue, 1.0); 55 55 }); 56 return model.SymbolicExpressionTree;56 return regressionModel.SymbolicExpressionTree; 57 57 } 58 58 }
Note: See TracChangeset
for help on using the changeset viewer.