- Timestamp:
- 09/21/10 14:51:47 (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/DataAnalysis/HeuristicLab.Problems.DataAnalysis.Views/3.3/Symbolic/InteractiveSymbolicRegressionSolutionSimplifierView.cs
r4462 r4464 85 85 int samplesStart = Content.ProblemData.TrainingSamplesStart.Value; 86 86 int samplesEnd = Content.ProblemData.TrainingSamplesEnd.Value; 87 SymbolicExpressionTree tree = (SymbolicExpressionTree)simplifiedExpressionTree.Clone();88 87 double originalTrainingMeanSquaredError = SymbolicRegressionMeanSquaredErrorEvaluator.Calculate( 89 Content.Model.Interpreter, tree, Content.LowerEstimationLimit, Content.UpperEstimationLimit,88 Content.Model.Interpreter, simplifiedExpressionTree, Content.LowerEstimationLimit, Content.UpperEstimationLimit, 90 89 Content.ProblemData.Dataset, Content.ProblemData.TargetVariable.Value, 91 90 Enumerable.Range(samplesStart, samplesEnd - samplesStart)); … … 93 92 this.CalculateReplacementNodes(); 94 93 95 this.CalculateNodeImpacts(tree, tree.Root.SubTrees[0], originalTrainingMeanSquaredError); 94 this.CalculateNodeImpacts(simplifiedExpressionTree, simplifiedExpressionTree.Root.SubTrees[0], originalTrainingMeanSquaredError); 95 // show only interesting part of solution 96 96 this.treeChart.Tree = new SymbolicExpressionTree(simplifiedExpressionTree.Root.SubTrees[0].SubTrees[0]); 97 97 this.PaintNodeImpacts(); … … 168 168 } 169 169 } 170 171 // show only interesting part of solution 170 172 this.treeChart.Tree = new SymbolicExpressionTree(simplifiedExpressionTree.Root.SubTrees[0].SubTrees[0]); 171 173 … … 206 208 if (treeNode is ConstantTreeNode && replacementNodes.ContainsValue((ConstantTreeNode)treeNode)) 207 209 this.treeChart.GetVisualSymbolicExpressionTreeNode(treeNode).LineColor = Color.DarkOrange; 208 else 209 this.treeChart.GetVisualSymbolicExpressionTreeNode(treeNode).LineColor = Color.Black; 210 else { 211 VisualSymbolicExpressionTreeNode visNode = treeChart.GetVisualSymbolicExpressionTreeNode(treeNode); 212 if (visNode != null) 213 visNode.LineColor = Color.Black; 214 } 210 215 } 211 216 }
Note: See TracChangeset
for help on using the changeset viewer.