Write matrix/vector

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

Write matrix/vector

Lydia Ickler
Hi,

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

Thanks in advance!
Best regards,
Lydia

Reply | Threaded
Open this post in threaded view
|

Re: Write matrix/vector

Chiwan Park-2
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 <[hidden email]> wrote:
>
> Hi,
>
> I would like to know how to write a Matrix or Vector (Dense/Sparse) to file?
>
> Thanks in advance!
> Best regards,
> Lydia
>