Re: Code error

2015-05-20 Thread Romain Sagean
Hi Ricardo, instead of filtering header just remove the header of your file. In your code you create a filter for the header but you don't use it to compute parsedData. val parsedData = filter_data.map(s => Vectors.dense(s.split(','). map(_.toDouble))).cache() 2015-05-19 21:23 GMT+02:00 Stephen

Re: Code error

2015-05-19 Thread Stephen Boesch
Hi Ricardo, providing the error output would help . But in any case you need to do a collect() on the rdd returned from computeCost. 2015-05-19 11:59 GMT-07:00 Ricardo Goncalves da Silva < ricardog.si...@telefonica.com>: > Hi, > > > > Can anybody see what’s wrong in this piece of code: > > > >