aboutsummaryrefslogtreecommitdiff
path: root/sql/core/src/main
diff options
context:
space:
mode:
authorwm624@hotmail.com <wm624@hotmail.com>2017-03-06 13:08:59 -0800
committerJoseph K. Bradley <joseph@databricks.com>2017-03-06 13:08:59 -0800
commit926543664f9d785e70f8314ed6ecc6ecda96d0f4 (patch)
tree02862631342f114b297c9edda789a46d2bde2da9 /sql/core/src/main
parent9991c2dad6d09d77d5a61e4c4dcd1770e5d984d4 (diff)
downloadspark-926543664f9d785e70f8314ed6ecc6ecda96d0f4.tar.gz
spark-926543664f9d785e70f8314ed6ecc6ecda96d0f4.tar.bz2
spark-926543664f9d785e70f8314ed6ecc6ecda96d0f4.zip
[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 Author: wm624@hotmail.com <wm624@hotmail.com> Author: Miao Wang <wangmiao1981@users.noreply.github.com> Closes #16784 from wangmiao1981/bk.
Diffstat (limited to 'sql/core/src/main')
0 files changed, 0 insertions, 0 deletions