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
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,
>
&
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(" ").r
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"
To: user@spark.apache.org
Sent: Wednesda