Skip to content

Commit

Permalink
Merge pull request #118 from vxld014/fix-mllib-adapter.py
Browse files Browse the repository at this point in the history
vector.array does not work with sparse vectors. vector.toArray() work…
  • Loading branch information
maxpumperla authored Dec 1, 2018
2 parents e4b3b16 + b65a597 commit 5097175
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion elephas/mllib/adapter.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ def to_matrix(np_array):
def from_vector(vector):
"""Convert MLlib Vector to numpy array
"""
return vector.array
return vector.toArray()


def to_vector(np_array):
Expand Down

0 comments on commit 5097175

Please sign in to comment.