Xusen Yin created SPARK-10133:
---------------------------------

             Summary: loadLibSVMFile fails to detect zero-based lines
                 Key: SPARK-10133
                 URL: https://issues.apache.org/jira/browse/SPARK-10133
             Project: Spark
          Issue Type: Bug
          Components: MLlib
    Affects Versions: 1.4.1
            Reporter: Xusen Yin
            Priority: Minor


https://github.com/apache/spark/blob/master/mllib/src/main/scala/org/apache/spark/mllib/util/MLUtils.scala#L88

The code wants to assure that each line of vector is one-based and in ascending 
order, but it fails since the previous = -1 in the beginning.

In this condition, a libSVM format file that begins with 0-based index could 
read in normally, but the size of the according SparseVector is wrong, i.e. 
numFeatures - 1.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to