nicodv / kmodes

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

Change feature array initialization dtype to uint32 #166

Closed rggelles closed 2 years ago

rggelles commented 2 years ago

Modifying feature array initialization dtype from float64 to uint32 should reduce overall memory usage in initialization.

Ran unit tests before and after change with no issues.

(Per https://github.com/nicodv/kmodes/issues/165)

rggelles commented 2 years ago

Thanks so much! And yes, a patch version would be great.