Skip to content
This repository has been archived by the owner on Oct 5, 2023. It is now read-only.

Create an @embedding decorator used for projection, KNN, etc. #652

Open
cabreraalex opened this issue Mar 11, 2023 · 4 comments
Open

Create an @embedding decorator used for projection, KNN, etc. #652

cabreraalex opened this issue Mar 11, 2023 · 4 comments

Comments

@cabreraalex
Copy link
Member

Often times we just want to get an embedding from the input data, NOT the output data. Currently we only support embeddings that come with a model prediction.

It would be nice to have embeddings run just once on the input data.

One option is to have this be a @distill function that we annotate as an embedding....

We could also generalize this to annotations for projections too?

@cabreraalex
Copy link
Member Author

@xnought thoughts?

@xnought
Copy link
Contributor

xnought commented Mar 11, 2023

Hmm good thought. I like the idea with the distill functions.

@xnought
Copy link
Contributor

xnought commented Mar 11, 2023

Yeah but for stuff that needs the full data to compute, we would need a different system.

Like tsne could not work on distill unless we allow people to define batch sizes in the distill decorator itself distill(batches=1) so it just gets run on the entire data.

@cabreraalex
Copy link
Member Author

ah yeah I keep forgetting about the fns that need the whole dataset

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants