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

ValueError: n_components must be < n_features; got 50 >= 47 #65

Open
SS159 opened this issue Nov 27, 2023 · 2 comments
Open

ValueError: n_components must be < n_features; got 50 >= 47 #65

SS159 opened this issue Nov 27, 2023 · 2 comments
Labels
bug Something isn't working

Comments

@SS159
Copy link

SS159 commented Nov 27, 2023

Hi there,

I'm using the Corpus Topic Model function in LitStudy and have been given a Value Error 'n_components must be < n_features; got 50 >= 47'

Any idea why this might be?

Thanks in advance,

S

image

@stijnh stijnh added the bug Something isn't working label Nov 27, 2023
@stijnh
Copy link
Member

stijnh commented Nov 27, 2023

You seem to have hit a bug!

For now, you can work around this by doing litstudy.plot_embedding(corpus, topic_model, layout=litstudy.nlp.calculate_embedding(corpus, svd_dims=45))

@SS159
Copy link
Author

SS159 commented Nov 27, 2023 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants