flink-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Daniel Blazevski <daniel.blazev...@gmail.com>
Subject Vector(DenseVector) as a type?
Date Mon, 02 Nov 2015 21:10:59 GMT

I am working on the exact knn algorithm in Flink, and I'd like to make the
structure more modular.

‚ÄčI am working off of the initial work of @chiwanpark, and when I print out
a variable to the screen, I get something like:
training.values =  Vector(DenseVector(-0.206, -0.276), DenseVector(-0.206,
testing.values =  Vector((0,DenseVector(0.0, 0.0)))
How can I pass such a variable to a function.  It seems that
myFun(A : Vector(DenseVector))
myFun(A : Vector[DenseVector])
do not work.  Tried to look around other Flink-ml code, but couldn't find
exactly what I was looking for.


  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message