Kmeans example with floats

2014-02-17 Thread agg
(_.*toFloat*)) } I get an error, saying it is expecting a double. Any thoughts? Thanks! -- View this message in context: http://apache-spark-user-list.1001560.n3.nabble.com/Kmeans-example-with-floats-tp1640.html Sent from the Apache Spark User List mailing list archive at Nabble.com.

Re: Kmeans example with floats

2014-02-17 Thread Sean Owen
)) } to: def parseVector(line: String): Vector = { return new Vector(line.split(',').map(_.*toFloat*)) } I get an error, saying it is expecting a double. Any thoughts? Thanks! -- View this message in context: http://apache-spark-user-list.1001560.n3.nabble.com/Kmeans-example

Re: Kmeans example with floats

2014-02-17 Thread Matei Zaharia
this message in context: http://apache-spark-user-list.1001560.n3.nabble.com/Kmeans-example-with-floats-tp1640.html Sent from the Apache Spark User List mailing list archive at Nabble.com.