Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

prediction on out of sample #8

Open
AleBitetto opened this issue Mar 15, 2021 · 1 comment
Open

prediction on out of sample #8

AleBitetto opened this issue Mar 15, 2021 · 1 comment

Comments

@AleBitetto
Copy link

Hi,

I'm trying to fit the model on a dataset with densmap.fit() and then to evaluate the embedding on a new dataset with different number of rows with densmap.transform() but I get an error of "index out of bound" for the row index. Is it a bug or the algorithm, by definition, is not allowed to do out-of-sample prediction?
Thanks

@anashwin
Copy link
Collaborator

Hi,

Great question. Unfortunately in its current iteration, UMAP isn't parametric and thus cannot do out of sample transformation. You currently have to run fit_transform on the entire dataset rather than fit.

The current version of UMAP implements ParametricUMAP which can do out of sample prediction, and also allows you to use densMAP parameters, so you can do density preserving parametric UMAP.

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

No branches or pull requests

2 participants