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

Compute embeddings with 2 or less images error #64

Open
PaulHax opened this issue May 16, 2024 · 4 comments
Open

Compute embeddings with 2 or less images error #64

PaulHax opened this issue May 16, 2024 · 4 comments

Comments

@PaulHax
Copy link
Collaborator

PaulHax commented May 16, 2024

Steps

  1. Drag Dataset Selection images slider to 2
  2. Click Embeddings Compute button
  3. Python Error: ValueError: n_components=3 must be between 0 and min(n_samples, n_features)=2 with svd_solver='full'
@vicentebolea
Copy link
Collaborator

This is a limitation of the pca|umap algorithm, the need a number of sample >= of the number of dimensions. We might want to limit the min number of elements in the sliders.

@vicentebolea
Copy link
Collaborator

Closing this since this is a limitation of umap/pca

@PaulHax
Copy link
Collaborator Author

PaulHax commented Aug 29, 2024

Never good to have a Python traceback error, right? Should we just put a check in the "compute embedding" function that skips things if the parameters are degenerate? For extra credit, give message to user on why they are not seeing their embedding points update?

@vicentebolea
Copy link
Collaborator

Good point

@vicentebolea vicentebolea reopened this Aug 29, 2024
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