Skip to content

Conversation

@yanboliang
Copy link
Contributor

@yanboliang yanboliang commented Aug 20, 2016

What changes were proposed in this pull request?

#14551 fixed off-by-one bug in randomizeInPlace and some test failure caused by this fix.

But for SparkR spark.gaussianMixture test case, the fix is inappropriate. It only changed the output result of native R which should be compared by SparkR, however, it did not change the R code in annotation which is used for reproducing the result in native R. It will confuse users who can not reproduce the same result in native R. This PR sends a more robust test case which can produce same result between SparkR and native R.

How was this patch tested?

Unit test update.

@SparkQA
Copy link

SparkQA commented Aug 20, 2016

Test build #64136 has finished for PR 14730 at commit 6cba174.

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

@srowen
Copy link
Member

srowen commented Aug 20, 2016

OK sounds good, thank you @yanboliang . It passed the PR builder but I see why this is a better test.

@felixcheung
Copy link
Member

LGTM

@yanboliang
Copy link
Contributor Author

Merged into master. Thanks for review.

@asfgit asfgit closed this in 7f08a60 Aug 21, 2016
@yanboliang yanboliang deleted the spark-16961-followup branch August 21, 2016 09:27
@srowen
Copy link
Member

srowen commented Aug 21, 2016

I was going to merge back to 2.0 but it looks like this file doesn't exist in 2.0? just double checking I didn't miss something.

@yanboliang
Copy link
Contributor Author

Yes, the spark.gaussianMixture was added after 2.0. Thanks!

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