Skip to content

Commit

Permalink
Remove default arguments in leaf functions.
Browse files Browse the repository at this point in the history
  • Loading branch information
kklein committed Mar 25, 2022
1 parent 6eba32f commit 19a4faa
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions kmodes/kprototypes.py
Original file line number Diff line number Diff line change
Expand Up @@ -499,13 +499,13 @@ def _k_prototypes_iter(Xnum, Xcat, centroids, cl_attr_sum, cl_memb_sum, cl_attr_
)
cl_attr_freq, membship, centroids[1] = kmodes._move_point_cat(
Xcat[rindx], rindx, old_clust, from_clust,
cl_attr_freq, membship, centroids[1]
cl_attr_freq, membship, centroids[1], weight
)

return centroids, cl_attr_sum, cl_memb_sum, cl_attr_freq, membship, moves


def _move_point_num(point, to_clust, from_clust, cl_attr_sum, cl_memb_sum, sample_weight=1):
def _move_point_num(point, to_clust, from_clust, cl_attr_sum, cl_memb_sum, sample_weight):
"""Move point between clusters, numerical attributes."""
# Update sum of attributes in cluster.
for iattr, curattr in enumerate(point):
Expand Down

0 comments on commit 19a4faa

Please sign in to comment.