GitHub user wangmiao1981 opened a pull request:

    https://github.com/apache/spark/pull/16784

    [SPARK-19382][ML]:Test sparse vectors in LinearSVCSuite

    ## What changes were proposed in this pull request?
    
    Add unit tests for testing SparseVector.
    
    We can't add mixed DenseVector and SparseVector test case, as discussed in 
JIRA 19382.
    
     def merge(other: MultivariateOnlineSummarizer): this.type = {
    if (this.totalWeightSum != 0.0 && other.totalWeightSum != 0.0) {
    require(n == other.n, s"Dimensions mismatch when merging with another 
summarizer. " +
    s"Expecting $n but got $
    {other.n}
    
    .")
    
    
    ## How was this patch tested?
    
    Unit tests

You can merge this pull request into a Git repository by running:

    $ git pull https://github.com/wangmiao1981/spark bk

Alternatively you can review and apply these changes as the patch at:

    https://github.com/apache/spark/pull/16784.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 #16784
    
----
commit 85336d1ecec425906356c09b5aa347288f7282bc
Author: wm...@hotmail.com <wm...@hotmail.com>
Date:   2017-01-31T23:10:09Z

    unit test backup

commit fc1f7d10134638dfe5130eb19784852207acebd5
Author: wm...@hotmail.com <wm...@hotmail.com>
Date:   2017-02-03T07:06:55Z

    add SparseVector test

----


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastruct...@apache.org or file a JIRA ticket
with INFRA.
---

---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscr...@spark.apache.org
For additional commands, e-mail: reviews-h...@spark.apache.org

Reply via email to