Changeset 15871 for trunk/HeuristicLab.Problems.DataAnalysis.Symbolic
- Timestamp:
- 03/28/18 17:41:20 (7 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/HeuristicLab.Problems.DataAnalysis.Symbolic/3.4/SymbolicDataAnalysisSolutionImpactValuesCalculator.cs
r15583 r15871 40 40 out double impactValue, out double replacementValue, out double newQualityForImpactsCalculation, 41 41 double qualityForImpactsCalculation = double.NaN) { 42 if (double.IsNaN(qualityForImpactsCalculation))43 qualityForImpactsCalculation = CalculateQualityForImpacts(model, problemData, rows);44 42 45 43 var cloner = new Cloner(); 46 44 var tempModel = cloner.Clone(model); 45 46 if (double.IsNaN(qualityForImpactsCalculation)) { 47 qualityForImpactsCalculation = CalculateQualityForImpacts(tempModel, problemData, rows); 48 } 49 47 50 var tempModelNode = (ISymbolicExpressionTreeNode)cloner.GetClone(node); 48 49 51 var tempModelParentNode = tempModelNode.Parent; 50 52 int i = tempModelParentNode.IndexOfSubtree(tempModelNode); … … 54 56 newQualityForImpactsCalculation = qualityForImpactsCalculation; // initialize 55 57 // try the potentially reasonable replacement values and use the best one 56 foreach (var repValue in CalculateReplacementValues(node, model.SymbolicExpressionTree, model.Interpreter, problemData.Dataset, problemData.TrainingIndices)) {58 foreach (var repValue in CalculateReplacementValues(node, model.SymbolicExpressionTree, model.Interpreter, problemData.Dataset, rows)) { 57 59 tempModelParentNode.RemoveSubtree(i); 58 60
Note: See TracChangeset
for help on using the changeset viewer.