Skip to content

Conversation

@rerngvit
Copy link
Contributor

Document CrossValidatorModel members: bestModel and avgMetrics

@AmplabJenkins
Copy link

Can one of the admins verify this patch?

Copy link
Member

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.

Copy link
Member

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.

Copy link
Contributor Author

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?

Copy link
Member

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.

Copy link
Contributor Author

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.

Copy link
Member

Choose a reason for hiding this comment

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

Augment:

@jkbradley
Copy link
Member

Thanks, this should work, pending that 1 doc update.

@rerngvit
Copy link
Contributor Author

rerngvit commented Oct 2, 2015

@jkbradley Thank you for your review. I updated the doc for avgMetrics according to your comment. Please have a look.

@jkbradley
Copy link
Member

LGTM, thanks! Merging with master

@asfgit asfgit closed this in 2a71782 Oct 2, 2015
@yhuai
Copy link
Contributor

yhuai commented Oct 2, 2015

Seems this one breaks our build.

@yhuai yhuai mentioned this pull request Oct 2, 2015
@yhuai
Copy link
Contributor

yhuai commented Oct 2, 2015

For doc-only change, it will be good to run the style check.

@yhuai
Copy link
Contributor

yhuai commented Oct 2, 2015

fyi, the hot fix has been merged.

asfgit pushed a commit that referenced this pull request Oct 2, 2015
#8882 broke our build.

Author: Yin Huai <[email protected]>

Closes #8964 from yhuai/fixStyle.
@jkbradley
Copy link
Member

Rats, I'm really sorry. I didn't realize tests hadn't run.

@rerngvit
Copy link
Contributor Author

rerngvit commented Oct 3, 2015

@yhuai Sorry for that.

@yhuai
Copy link
Contributor

yhuai commented Oct 3, 2015

@rerngvit no worry

kiszk pushed a commit to kiszk/spark-gpu that referenced this pull request Dec 26, 2015
apache/spark#8882 broke our build.

Author: Yin Huai <[email protected]>

Closes #8964 from yhuai/fixStyle.
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.

4 participants