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: Expected 2D array, got 1D array instead #8

Open
Doraemonzt opened this issue Sep 8, 2024 · 5 comments
Open

ValueError: Expected 2D array, got 1D array instead #8

Doraemonzt opened this issue Sep 8, 2024 · 5 comments

Comments

@Doraemonzt
Copy link

ValueError: Expected 2D array, got 1D array instead:
array=[nan nan nan nan nan nan nan nan nan nan].
Reshape your data either using array.reshape(-1, 1) if your data has a single feature or array.reshape(1, -1) if it contains a single sample.

@lawyinking
Copy link

did you fix it?

@Marmar8001
Copy link

Got the same error

@lawyinking
Copy link

@ArikReuter

@Sudeeksha2308
Copy link

I got the same error. Any fix?

@imvaibhav28
Copy link

ValueError: Expected 2D array, got 1D array instead:
array=[nan nan nan nan nan].
Reshape your data either using array.reshape(-1, 1) if your data has a single feature or array.reshape(1, -1) if it contains a single sample.

Same error on src/topicgpt/Clustering.py#line=91)

Any fix @ArikReuter ?

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

5 participants