-
Notifications
You must be signed in to change notification settings - Fork 28.9k
[SPARK-9798] [ML] CrossValidatorModel Documentation Improvements #8882
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
Conversation
|
Can one of the admins verify this patch? |
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.
These should be documented in the class Scala doc (line 138+), using the @param tag.
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.
See other classes for examples.
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.
@jkbradley I don't fully understand. As far as I understand, @param is for documenting arguments of methods. However, both bestModel and avgMetrics (that Spark-9798 is about) are not arguments in any methods (including constructors). Why should there be @params for the two members for the class? Could you please help elaborate?
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.
Those are params for the class constructor. I'd recommend you try generating the Scala docs as you have the code now, and with the docs moved to param docs, to see the difference.
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.
@jkbradley Thank you for your clarification. I modified the PR according to your comment. Please have a look. Note that I also rebase to the master branch, since it has been moved.
8d16408 to
9b95c61
Compare
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.
Augment:
|
Thanks, this should work, pending that 1 doc update. |
…datorModel according to comment.
…datorModel according to comment.
|
@jkbradley Thank you for your review. I updated the doc for avgMetrics according to your comment. Please have a look. |
|
LGTM, thanks! Merging with master |
|
Seems this one breaks our build. |
|
For doc-only change, it will be good to run the style check. |
|
fyi, the hot fix has been merged. |
#8882 broke our build. Author: Yin Huai <[email protected]> Closes #8964 from yhuai/fixStyle.
|
Rats, I'm really sorry. I didn't realize tests hadn't run. |
|
@yhuai Sorry for that. |
|
@rerngvit no worry |
apache/spark#8882 broke our build. Author: Yin Huai <[email protected]> Closes #8964 from yhuai/fixStyle.
Document CrossValidatorModel members: bestModel and avgMetrics