You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Would help users to review results. Not sure where best to put these utility plot functions? Alternatively add to an example notebook/documentation
Source code
# Plot inertia vs. number of clusters to find the "elbow point"results=calkmeans(img, k=None, algo=('lloyd', 'elkan'), n_iter=10)
cluster_range=range(1, 11)
plt.figure(figsize=(8, 6))
foralgorithminresults:
plt.plot(cluster_range, results[algorithm], marker='o', label=f'Algorithm: {algorithm}')
plt.title('Inertia vs Number of Clusters')
plt.xlabel('Number of Clusters')
plt.ylabel('Inertia')
plt.legend()
plt.show()
Output example:
The text was updated successfully, but these errors were encountered:
Hi @robmarkcole, thank you again for your contribution to improve scikit-eo. This implementation can take some time considering that I am writing an article related to my PhD. In case you decide to contribute, I will be grateful.
This function could be inside process.py or inside calkmeans.py, maybe.
Description
Would help users to review results. Not sure where best to put these utility plot functions? Alternatively add to an example notebook/documentation
Source code
Output example:
The text was updated successfully, but these errors were encountered: