Skip to content

Commit

Permalink
cosmit
Browse files Browse the repository at this point in the history
  • Loading branch information
pprett committed Sep 17, 2014
1 parent 75f6e01 commit 73a8c3a
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion sklearn/ensemble/gradient_boosting.py
Original file line number Diff line number Diff line change
Expand Up @@ -367,7 +367,6 @@ def _update_terminal_region(self, tree, terminal_regions, leaf, X, y,
diff = (y.take(terminal_region, axis=0)
- pred.take(terminal_region, axis=0))
median = _weighted_percentile(diff, sample_weight, percentile=50)
#median = np.median(diff)
diff_minus_median = diff - median
tree.value[leaf, 0] = median + np.mean(
np.sign(diff_minus_median) *
Expand Down

0 comments on commit 73a8c3a

Please sign in to comment.