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: All arrays must be of the same length #179

Open
tathianabarreto opened this issue May 13, 2022 · 3 comments
Open

ValueError: All arrays must be of the same length #179

tathianabarreto opened this issue May 13, 2022 · 3 comments

Comments

@tathianabarreto
Copy link

tathianabarreto commented May 13, 2022

Hi! I've been trying to apply KPrototype in my PhD. After I get the optimal K (cluster initiation), I type to convert the results into a dataframe and plot the Elbow Method, but I keep getting the same error 'ValueError: All arrays must be of the same length'.
I've checked for missing values, there are none (I've replaced them for "Not answered". I don't know what else to do.
Thank you very much for yor attention, Tathiana

@davins90
Copy link

Hi, can you provide an example of code and a sample of data? The Elbow method you plot on the x-axis should have a range of k values

@tathianabarreto
Copy link
Author

Hi!! I’m new at Python and still getting a lot of basic errors. I figured what I was doing wrong out already, but thank you so much for answering. I’m very excited with k-prototypes possibilities, I believe I finally found the methodology I needed.

@davins90
Copy link

No problem, I'm happy to help you! K-prototypes it's very useful with mixed data! Congrats for using it!

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