[ https://issues.apache.org/jira/browse/SPARK-14739?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15248994#comment-15248994 ]
Maciej Szymkiewicz commented on SPARK-14739: -------------------------------------------- This solves only small part of the problem. Right now both Sparse and Dense vector parsing is broken, not to mention corresponding tests are dead code. > Vectors.parse doesn't handle dense vectors of size 0 and sparse vectros with > no indices > --------------------------------------------------------------------------------------- > > Key: SPARK-14739 > URL: https://issues.apache.org/jira/browse/SPARK-14739 > Project: Spark > Issue Type: Bug > Components: MLlib, PySpark > Affects Versions: 1.6.0, 2.0.0 > Reporter: Maciej Szymkiewicz > > DenseVector: > {code} > Vectors.parse(str(Vectors.dense([]))) > ## ValueError Traceback (most recent call last) > ## .. > ## ValueError: Unable to parse values from > {code} > SparseVector: > {code} > Vectors.parse(str(Vectors.sparse(5, [], []))) > ## ValueError Traceback (most recent call last) > ## ... > ## ValueError: Unable to parse indices from . > {code} -- This message was sent by Atlassian JIRA (v6.3.4#6332) --------------------------------------------------------------------- To unsubscribe, e-mail: issues-unsubscr...@spark.apache.org For additional commands, e-mail: issues-h...@spark.apache.org