pymde icon indicating copy to clipboard operation
pymde copied to clipboard

[Feature] Incremental embedding

Open akshayka opened this issue 4 years ago • 4 comments

Implement a method for incrementally embedding, i.e., for adding new points to an existing embedding, as described in chapter 2, section 4.2 of the monograph.

All the necessary pieces are already implemented; they just need to be assembled together.

akshayka avatar Mar 26 '21 16:03 akshayka

thanks for your nice work. I am interested in the incremental embedding. Let me know when do you plan to have?.

ghost avatar Apr 12 '21 09:04 ghost

Thanks for your interest!

My tentative plan is to develop this feature within the next one to two months. I will update this thread once I start development.

akshayka avatar Apr 12 '21 15:04 akshayka

@bbdamodadran, I've added an example notebook that shows how to do incremental embedding (i.e., add new points to an existing embedding), using pymde.preserve_neighbors. It's just 3 lines of code (or 1, if you chain them together).

The notebook is here: https://github.com/cvxgrp/pymde/blob/main/examples/updating_an_existing_embedding.ipynb

I've also updated the documentation on embedding new points (https://pymde.org/mde/index.html#embedding-new-points).

Hopefully that's enough to get you started. Let me know if you have any questions.

akshayka avatar Apr 25 '21 21:04 akshayka

@akshayka Thanks for adding this new feature and also for the neat example.

ghost avatar Jun 04 '21 17:06 ghost