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 10:45:45 UTC

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

    [ https://issues.apache.org/jira/browse/SPARK-10133?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14704521#comment-14704521 ] 

Xusen Yin commented on SPARK-10133:
-----------------------------------

Thanks. I ignored the above line.

> 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