flink-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "ASF GitHub Bot (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (FLINK-1937) Cannot create SparseVector with only one non-zero element.
Date Wed, 29 Apr 2015 08:33:06 GMT

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

ASF GitHub Bot commented on FLINK-1937:
---------------------------------------

Github user tillrohrmann commented on the pull request:

    https://github.com/apache/flink/pull/636#issuecomment-97351925
  
    Thanks for reviewing @chiwanpark. I'll merge it then.


> Cannot create SparseVector with only one non-zero element.
> ----------------------------------------------------------
>
>                 Key: FLINK-1937
>                 URL: https://issues.apache.org/jira/browse/FLINK-1937
>             Project: Flink
>          Issue Type: Bug
>          Components: Machine Learning Library
>            Reporter: Chiwan Park
>            Assignee: Till Rohrmann
>              Labels: ML
>
> I tried creating SparseVector with only one non-zero element. But I couldn't create it.
Following code causes the problem.
> {code}
> val vec2 = SparseVector.fromCOO(3, (1, 1))
> {code}
> I got a compile error following:
> {code:none}
> Error:(60, 29) overloaded method value fromCOO with alternatives:
>   (size: Int,entries: Iterable[(Int, Double)])org.apache.flink.ml.math.SparseVector <and>
>   (size: Int,entries: (Int, Double)*)org.apache.flink.ml.math.SparseVector
>  cannot be applied to (Int, (Int, Int))
>     val vec2 = SparseVector.fromCOO(3, (1, 1))
>                             ^
> {code}



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

Mime
View raw message