ENH Add custom loss support for HistGradientBoosting#16908
ENH Add custom loss support for HistGradientBoosting#16908thomasjpfan merged 1 commit intoscikit-learn:masterfrom
Conversation
Add custom loss support for HistGradientBoostingClassifier and HistGradientBoostingRegressor as a private API without any documentation. A `BaseLoss` object can now be passed a loss parameter. Resolves: scikit-learn#15841
thomasjpfan
left a comment
There was a problem hiding this comment.
Looks like the issue discussion is okay with making this private (for now).
LGTM
|
is it possible to add custom loss function to classification tree as well? |
|
people really need it It's tricky, but you can do it...
from .metrics import accuracy_score |
|
@Sandy4321 please see #15841 (comment). The instructions copied pasted from SO above are incorrect. |
Reference Issues/PRs
Resolves: #15841
What does this implement/fix? Explain your changes.
Add custom loss support for HistGradientBoostingClassifier and
HistGradientBoostingRegressor as a private API without any
documentation. A
BaseLossobject can now be passed a lossparameter.