You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@flink.apache.org by Lydia Ickler <ic...@googlemail.com> on 2016/05/30 02:31:36 UTC

Write matrix/vector

Hi,

I would like to know how to write a Matrix or Vector (Dense/Sparse) to file?

Thanks in advance!
Best regards,
Lydia


Re: Write matrix/vector

Posted by Chiwan Park <ch...@apache.org>.
Hi Lydia,

`FlinkMLTools.persist` method is used to save ML models and can be used to save Matrix and Vector object. Note that the method uses TypeSerializerOutputFormat which is binary output format.

Regards,
Chiwan Park

> On May 30, 2016, at 11:31 AM, Lydia Ickler <ic...@googlemail.com> wrote:
> 
> Hi,
> 
> I would like to know how to write a Matrix or Vector (Dense/Sparse) to file?
> 
> Thanks in advance!
> Best regards,
> Lydia
>