Skip to content
Closed
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Next Next commit
Add tests for SPARK-14739
  • Loading branch information
zero323 committed Apr 19, 2016
commit 0433338f5c20f94f1dceee3ac01fe9ff32cf4496
4 changes: 4 additions & 0 deletions python/pyspark/mllib/tests.py
Original file line number Diff line number Diff line change
Expand Up @@ -401,6 +401,10 @@ def test_parse_vector(self):
self.assertTrue(Vectors.parse(str(a)), a)
a = SparseVector(10, [0, 1], [4, 5])
self.assertTrue(SparseVector.parse(' (10, [0,1 ],[ 4.0,5.0] )'), a)
a = DenseVector([])
self.assertEqual(Vectors.parse('[]'), a)
a = SparseVector(10, [], [])
self.assertEqual(Vectors.parse('(10, [], [])'), a)

def test_norms(self):
a = DenseVector([0, 2, 3, -1])
Expand Down