nicodv / kmodes

Python implementations of the k-modes and k-prototypes clustering algorithms, for clustering categorical data
MIT License
1.24k stars 417 forks source link

init_huang method changed #145

Closed harishb00 closed 4 years ago

harishb00 commented 4 years ago

Frequency of each category of each attribute is counted to just populate each category as frequency number of times. Instead, we can just sort the attribute and then choose as many values as we want.

coveralls commented 4 years ago

Coverage Status

Coverage decreased (-0.02%) to 97.18% when pulling 79189fed91fef0f5ea528ebc0e3022c814e47a82 on harry-b-harish:kmodes.py-edits into 9e9b7644a7cd62dc11c0fc30b07da2a113142dab on nicodv:master.

nicodv commented 4 years ago

Nice find, @harry-b-harish