You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@spark.apache.org by "Xusen Yin (JIRA)" <ji...@apache.org> on 2015/08/20 09:54:46 UTC

[jira] [Created] (SPARK-10133) loadLibSVMFile fails to detect zero-based lines

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: issues-unsubscribe@spark.apache.org
For additional commands, e-mail: issues-help@spark.apache.org