mirror of
https://github.com/TheAlgorithms/Python.git
synced 2025-07-05 01:09:40 +08:00
The black formatter is no longer beta (#5960)
* The black formatter is no longer beta * pre-commit autoupdate * pre-commit autoupdate * Remove project_euler/problem_145 which is killing our CI tests * updating DIRECTORY.md Co-authored-by: github-actions <${GITHUB_ACTOR}@users.noreply.github.com>
This commit is contained in:
@ -112,7 +112,7 @@ def compute_heterogeneity(data, k, centroids, cluster_assignment):
|
||||
distances = pairwise_distances(
|
||||
member_data_points, [centroids[i]], metric="euclidean"
|
||||
)
|
||||
squared_distances = distances ** 2
|
||||
squared_distances = distances**2
|
||||
heterogeneity += np.sum(squared_distances)
|
||||
|
||||
return heterogeneity
|
||||
|
Reference in New Issue
Block a user