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

[SPARK-19054][ML] Eliminate extra pass in NB #16453

Closed
wants to merge 2 commits into from

Conversation

zhengruifeng
Copy link
Contributor

What changes were proposed in this pull request?

eliminate unnecessary extra pass in NB's train

How was this patch tested?

existing tests

@SparkQA
Copy link

SparkQA commented Jan 3, 2017

Test build #70792 has finished for PR 16453 at commit 4937b7d.

  • This patch passes all tests.
  • This patch merges cleanly.
  • This patch adds no public classes.

val numClasses = getNumClasses(dataset)
if (isDefined(thresholds)) {
require($(thresholds).length == numClasses, this.getClass.getSimpleName +
require($(thresholds).length == numClasses, this.getClass.getSimpleName +
".train() called with non-matching numClasses and thresholds.length." +
Copy link
Member

Choose a reason for hiding this comment

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

Could you please fix the indentation here?

@jkbradley
Copy link
Member

LGTM except for the style nit

@zhengruifeng
Copy link
Contributor Author

Updated. Thanks for reviewing.

@SparkQA
Copy link

SparkQA commented Jan 4, 2017

Test build #70854 has finished for PR 16453 at commit 1b3b5a0.

  • This patch passes all tests.
  • This patch merges cleanly.
  • This patch adds no public classes.

@srowen
Copy link
Member

srowen commented Jan 4, 2017

Merged to master

@asfgit asfgit closed this in 7a82505 Jan 4, 2017
@zhengruifeng zhengruifeng deleted the nb_getNC branch January 4, 2017 11:56
cmonkey pushed a commit to cmonkey/spark that referenced this pull request Jan 9, 2017
## What changes were proposed in this pull request?
eliminate unnecessary extra pass in NB's train

## How was this patch tested?
existing tests

Author: Zheng RuiFeng <ruifengz@foxmail.com>

Closes apache#16453 from zhengruifeng/nb_getNC.
uzadude pushed a commit to uzadude/spark that referenced this pull request Jan 27, 2017
## What changes were proposed in this pull request?
eliminate unnecessary extra pass in NB's train

## How was this patch tested?
existing tests

Author: Zheng RuiFeng <ruifengz@foxmail.com>

Closes apache#16453 from zhengruifeng/nb_getNC.
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