umap-js
umap-js copied to clipboard
Feature request: ability to serialize and deserialize state
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:
- Resume asynchronous fitting if process needs to abort before it's done.
- 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
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.
Yeah, I've thought about this a bit... I think it's worth doing. I'll try to prioritize this moving forward.
Was this ever solved or a solution suggested? I've tried a number of serialisation libraries with no luck.
Is there any progress here?
did anyone manage to do the serialization/deserialization?