umap-js icon indicating copy to clipboard operation
umap-js copied to clipboard

Feature request: ability to serialize and deserialize state

Open brianchirls opened this issue 5 years ago • 5 comments

Since fitting large data sets can take quite a long time, it would be useful to be able to save the state to disk or elsewhere in memory so computation can be resumed elsewhere.

A couple use cases:

  1. Resume asynchronous fitting if process needs to abort before it's done.
  2. Save results of fitting in a database so additional points can be transformed later, on other devices or in a parallel process (see #11).

Thanks

brianchirls avatar Dec 11 '19 14:12 brianchirls

Extra bonus points if it can be serialized as an array buffer so the data can be transferred between workers rather than copied. But I realize that's a big ask.

brianchirls avatar Dec 11 '19 14:12 brianchirls

Yeah, I've thought about this a bit... I think it's worth doing. I'll try to prioritize this moving forward.

cannoneyed avatar Jan 14 '20 22:01 cannoneyed

Was this ever solved or a solution suggested? I've tried a number of serialisation libraries with no luck.

alistairheath avatar Jul 20 '22 22:07 alistairheath

Is there any progress here?

higsch avatar Dec 02 '23 20:12 higsch

did anyone manage to do the serialization/deserialization?

r03ert0 avatar Apr 20 '24 14:04 r03ert0