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

Ronny Bräunlich commented on FLINK-2211:
----------------------------------------

Hey people,
I have a small (big, major (pick one) ;) ) problem and hope you can help me.
While trying to convert every Int to Long Scala/Java puts some limitations on 
us.
The ALS implementation uses Arrays internally, e.g.
{code:java}
val matrix = Array.fill(triangleSize)(0.0)
val fullMatrix = Array.fill(factors * factors)(0.0)
{code}
and Arrays can only bit set to an Int size. Alternatives, like ArrayBuffer or 
ArrayLists have the same limitations.
Do you have any ideas how to solve this? Converting the Longs to Ints would 
bring us back to the initial problem.
Cheers,
Ronny

> Generalize ALS API
> ------------------
>
>                 Key: FLINK-2211
>                 URL: https://issues.apache.org/jira/browse/FLINK-2211
>             Project: Flink
>          Issue Type: Improvement
>          Components: Machine Learning Library
>    Affects Versions: 0.9
>            Reporter: Ronny Bräunlich
>            Priority: Minor
>
> predict() and fit() require at the moment DataSet[(Int, Int)] or 
> DataSet[(Int, Int, Double]) respectively.
> This should be changed to Long to accept more values or to something more 
> general.
> See also 
> http://apache-flink-mailing-list-archive.1008284.n3.nabble.com/Apache-Flink-0-9-ALS-API-td6424.html



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

Reply via email to