Skip to content

Commit

Permalink
small fix
Browse files Browse the repository at this point in the history
  • Loading branch information
Derek Miller authored and Derek Miller committed Aug 6, 2021
1 parent a8ac83b commit 3298521
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion summarizer/cluster_features.py
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,7 @@ def calculate_optimal_cluster(self, k_max: int):
delta_2.append(delta_1[i] - delta_1[i - 1] if i > 1 else 0.0)

for j in range(len(inertias)):
strength = 0 if j <= 1 or j == leinertias) - 1 else delta_2[j + 1] - delta_1[j + 1]
strength = 0 if j <= 1 or j == len(inertias) - 1 else delta_2[j + 1] - delta_1[j + 1]

if strength > max_strength:
max_strength = strength
Expand Down

0 comments on commit 3298521

Please sign in to comment.