Skip to content

Commit 50abef3

Browse files
committed
fix ut for sparse vector with explicit 0
1 parent f41b135 commit 50abef3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

mllib/src/test/scala/org/apache/spark/mllib/linalg/VectorsSuite.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,7 @@ class VectorsSuite extends FunSuite {
9292
test("sparse equals with explicit 0") {
9393
val sv1 = Vectors.sparse(10, Array(1, 3, 4, 7), Array(0.9, 0.8, 0.7, 0.6))
9494
val sv2 = Vectors.sparse(10, Array(0, 1, 3, 4, 7), Array(0.0, 0.9, 0.8, 0.7, 0.6))
95-
val sv3 = Vectors.sparse(10, Array(1, 3, 4, 5, 6, 7), Array(0.9, 0.8, 0, 0, 0.7, 0.6))
95+
val sv3 = Vectors.sparse(10, Array(1, 3, 4, 5, 6, 7), Array(0.9, 0.8, 0.7, 0, 0, 0.6))
9696
val sv4 = Vectors.sparse(10, Array(1, 3, 4, 7, 9), Array(0.9, 0.8, 0.7, 0.6, 0))
9797
val sv5 = Vectors.sparse(10, Array(0, 1, 2, 3, 4, 5, 6, 7, 8, 9),
9898
Array(0, 0.9, 0, 0.8, 0.7, 0, 0, 0.6, 0, 0))

0 commit comments

Comments
 (0)