[docs] document how to use a custom objective function via the C API#6396
[docs] document how to use a custom objective function via the C API#6396jameslamb merged 7 commits intomicrosoft:masterfrom parsiad:parsiad/objective-custom-doc
Conversation
|
@microsoft-github-policy-service agree |
jameslamb
left a comment
There was a problem hiding this comment.
Thanks for this!
I've updated the title and added a PR description. In the future when you contribute here, please do provide a PR description briefly describing what the PR does and how it improves the project, including links to any other relevant information. This helps maintainers to understand how what the goal is (to provide useful feedback) and helps other people finding the PR in the future (e.g. from search engines or release notes).
After applying the suggestions I left, please run the script we use to automatically generate parameter documentation and the corresponding C++ code.
python ./helpers/parameter_generator.pyCo-authored-by: James Lamb <jaylamb20@gmail.com>
Co-authored-by: James Lamb <jaylamb20@gmail.com>
jameslamb
left a comment
There was a problem hiding this comment.
Thanks very much! I just pushed commits to get this up to date with the latest changes in this repo (now that we've fixed continuous integration), and to split up 2 lines of documentation.
I also changed this from your phrasing:
must be passed through parameters explicitly
to this
must be passed through parameters explicitly in the C API
So that users of the R and Python packages don't get confused and think they need to pass "objective": "custom" (they do not).
👋🏻 Come back and contribute any time!
|
This pull request has been automatically locked since there has not been any recent activity since it was closed. |
Follow-up to #6393.
Clarifies that
objective=custommust be provided viaparametersin the C API if you want to use a custom objective function and provide gradients/hessians manually.