Changeset 14017
- Timestamp:
- 07/07/16 13:18:28 (8 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/sources/HeuristicLab.Algorithms.DataAnalysis/3.4/GradientBoostedTrees/RegressionTreeModel.cs
r14016 r14017 170 170 if (node.VarName == TreeNode.NO_VARIABLE) 171 171 return node.Val; 172 if (columnCache[nodeIdx] == null ) {172 if (columnCache[nodeIdx] == null || double.IsNaN(columnCache[nodeIdx][row])) { 173 173 if (node.WeightLeft.IsAlmost(-1.0)) throw new InvalidOperationException("Cannot calculate partial dependence for trees loaded from older versions of HeuristicLab."); 174 174 // weighted average for partial dependence plot (recursive here because we need to calculate both sub-trees)
Note: See TracChangeset
for help on using the changeset viewer.