GitHub user WeichenXu123 opened a pull request:
https://github.com/apache/spark/pull/19558
[SPARK-22332][ML][TEST] Fix NaiveBayes unit test occasionly fail (cause by
test dataset not deterministic)
## What changes were proposed in this pull request?
Fix NaiveBayes unit test occasionly fail:
Set seed for `BrzMultinomial.sample`, make `generateNaiveBayesInput` output
deterministic dataset.
## How was this patch tested?
Manually run tests multiple times and check each time output models
contains the same values.
You can merge this pull request into a Git repository by running:
$ git pull https://github.com/WeichenXu123/spark fix_nb_test_seed
Alternatively you can review and apply these changes as the patch at:
https://github.com/apache/spark/pull/19558.patch
To close this pull request, make a commit to your master/trunk branch
with (at least) the following in the commit message:
This closes #19558
----
commit be2606b71a6f5f39da3446c7e2318c187f7fd157
Author: WeichenXu <[email protected]>
Date: 2017-10-23T10:33:51Z
init pr
----
---
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]