Re: MLLib: LIBSVM issue

2014-09-18 Thread Debasish Das
We dump fairly big libsvm to compare against liblinear/libsvm...the following code dumps out libsvm format from SparseVector... def toLibSvm(features: SparseVector): String = { val indices = features.indices.map(_ + 1) val values = features.values indices.zip(values).mkString(

RE: MLLib: LIBSVM issue

2014-09-18 Thread Sameer Tilak
Thanks, Burak,Yes, tab was an issue and I was able to get it working after replacing that with space. Date: Wed, 17 Sep 2014 21:11:00 -0700 From: bya...@stanford.edu To: ssti...@live.com CC: user@spark.apache.org Subject: Re: MLLib: LIBSVM issue Hi, The spacing between the inputs

RE: MLLib: LIBSVM issue

2014-09-18 Thread Sameer Tilak
Thanks, will try it out today. Date: Wed, 17 Sep 2014 23:04:31 -0700 Subject: Re: MLLib: LIBSVM issue From: debasish.da...@gmail.com To: bya...@stanford.edu CC: ssti...@live.com; user@spark.apache.org We dump fairly big libsvm to compare against liblinear/libsvm...the following code dumps out

Re: MLLib: LIBSVM issue

2014-09-17 Thread Burak Yavuz
Hi, The spacing between the inputs should be a single space, not a tab. I feel like your inputs have tabs between them instead of a single space. Therefore the parser cannot parse the input. Best, Burak - Original Message - From: Sameer Tilak ssti...@live.com To: user@spark.apache.org