Skip to content

CLN Removes unneeded code in histgradientboosting#16820

Merged
NicolasHug merged 1 commit intoscikit-learn:masterfrom
thomasjpfan:hgbt_slight_refactor
Apr 1, 2020
Merged

CLN Removes unneeded code in histgradientboosting#16820
NicolasHug merged 1 commit intoscikit-learn:masterfrom
thomasjpfan:hgbt_slight_refactor

Conversation

@thomasjpfan
Copy link
Copy Markdown
Member

This code is already called here:

# initialize gradients and hessians (empty arrays).
# shape = (n_trees_per_iteration, n_samples).
gradients, hessians = self.loss_.init_gradients_and_hessians(
n_samples=n_samples,
prediction_dim=self.n_trees_per_iteration_,
sample_weight=sample_weight_train
)

CC @NicolasHug

@NicolasHug
Copy link
Copy Markdown
Member

Thanks, somehow these got re-introduced in the code because they were already removed in https://github.com/scikit-learn/scikit-learn/pull/15686/files :p

Failure is unrelated so we can merge

@NicolasHug NicolasHug merged commit 37776a0 into scikit-learn:master Apr 1, 2020
gio8tisu pushed a commit to gio8tisu/scikit-learn that referenced this pull request May 15, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants