Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[DOC] fix GradientBoostingSurvivalAnalysis docstring on criterion parameter #449

Closed

Conversation

fkiraly
Copy link
Contributor

@fkiraly fkiraly commented Apr 6, 2024

Fixes #448, under the assumption that the issue is with the docstring, not the logic.

Copy link
Owner

@sebp sebp left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for noticing!

For consistence with sklearn, and to make it easier to track changes, I'd prefer to copy the API doc from sklearn. This would also remove "mae", which isn't supported by BaseGradientBoosting.

https://github.com/scikit-learn/scikit-learn/blob/f07e0138bfee41cd2c0a5d0251dc3fe03e6e1084/sklearn/ensemble/_gb.py#L1159-L1164

@fkiraly
Copy link
Contributor Author

fkiraly commented Apr 7, 2024

of course, done

@fkiraly fkiraly requested a review from sebp April 7, 2024 12:14
@fkiraly
Copy link
Contributor Author

fkiraly commented Apr 7, 2024

Thanks for noticing!

PS, it was actually the tests in skpro that noticed. Was churning through (assumed) parameter settings and it raised an error.

Copy link

codecov bot commented Apr 7, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 98.15%. Comparing base (6782d8e) to head (a0cc3f4).

Additional details and impacted files
@@           Coverage Diff           @@
##           master     #449   +/-   ##
=======================================
  Coverage   98.15%   98.15%           
=======================================
  Files          37       37           
  Lines        3526     3526           
  Branches      539      539           
=======================================
  Hits         3461     3461           
  Misses         31       31           
  Partials       34       34           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

sebp added a commit that referenced this pull request Apr 7, 2024
@sebp
Copy link
Owner

sebp commented Apr 7, 2024

@fkiraly Thank you. Merged in commit f5e7c04

@sebp sebp closed this Apr 7, 2024
@sebp sebp removed their request for review April 7, 2024 18:51
@fkiraly
Copy link
Contributor Author

fkiraly commented Apr 7, 2024

... why did you close this and merge a copy, @sebp?

@sebp
Copy link
Owner

sebp commented Apr 8, 2024

I squashed your commits before merging.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[BUG] GradientBoostingSurvivalAnalysis - docstring/logic mismatch on possible criterion values
2 participants