Get Number of clusters Automatically

parent 06747cb1
...@@ -103,7 +103,7 @@ class TopicCluster: ...@@ -103,7 +103,7 @@ class TopicCluster:
# plt.ylabel('Distortion') # plt.ylabel('Distortion')
# plt.title('The Elbow Method showing the optimal k') # plt.title('The Elbow Method showing the optimal k')
# plt.show() # plt.show()
#get number of clusters automatically
def get_k_value(y_list): def get_k_value(y_list):
try: try:
coordinate_dict = {} coordinate_dict = {}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment