You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@spark.apache.org by "Ulanov, Alexander" <al...@hp.com> on 2014/07/07 09:37:35 UTC

Dense to sparse vector converter

Hi,

Is there a method in Spark/MLlib to convert DenseVector to SparseVector?

Best regards, Alexander

Re: Dense to sparse vector converter

Posted by Xiangrui Meng <me...@gmail.com>.
No, but it should be easy to add one. -Xiangrui

On Mon, Jul 7, 2014 at 12:37 AM, Ulanov, Alexander
<al...@hp.com> wrote:
> Hi,
>
>
>
> Is there a method in Spark/MLlib to convert DenseVector to SparseVector?
>
>
>
> Best regards, Alexander