-
Notifications
You must be signed in to change notification settings - Fork 540
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
Improve FIL code readability and documentation #3056
Conversation
Please update the changelog in order to start CI tests. View the gpuCI docs here. |
This reverts commit da8529f.
This PR has been marked stale due to no recent activity in the past 30d. Please close this PR if it is no longer required. Otherwise, please respond with a comment indicating any updates. This PR will be marked rotten if there is no activity in the next 60d. |
@levsnv Are we still hoping to get this in at some point, or is this all essentially outdated? |
@wphicks at some point, yes. It will not be hard to fix conflicts, and the fixes are mostly up to date AFAIK. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Approved, provided that the comments are addressed.
waiting for #4012 to rerun the CI |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Just had one question before merging
""") | ||
return func | ||
|
||
def common_predict_params_docstring(func): |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think this is repeating functionality available here:
cuml/python/cuml/common/doc_utils.py
Line 352 in f71d369
def insert_into_docstring(parameters=False, |
Was wondering if you tried using that existing decorator and if it caused any issues?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
(sorry, misread the comment at first)
it wouldn't have For optimal performance, pass a device array with C-style layout
.
generate_docstring
couldn't handle
@generate_docstring
def f(X):
""" """
pass
so I used _parameters_docstrings
to make it as close as possible
rerun tests |
Codecov Report
@@ Coverage Diff @@
## branch-21.08 #3056 +/- ##
===============================================
Coverage ? 85.47%
===============================================
Files ? 230
Lines ? 18130
Branches ? 0
===============================================
Hits ? 15496
Misses ? 2634
Partials ? 0
Flags with carried forward coverage won't be shown. Click here to find out more. Continue to review full report at Codecov.
|
@gpucibot merge |
@canonizer @hcho3 all proposals for more readable/simpler code welcome, especially feel free to push into this branch! :) Authors: - https://github.com/levsnv Approvers: - Andy Adinets (https://github.com/canonizer) - Dante Gama Dessavre (https://github.com/dantegd) URL: rapidsai#3056
@canonizer @hcho3 all proposals for more readable/simpler code welcome, especially feel free to push into this branch! :)