Skip to content

Commit

Permalink
Merge pull request #166 from rggelles/master
Browse files Browse the repository at this point in the history
Change feature array initialization dtype to uint32
  • Loading branch information
nicodv authored Oct 7, 2021
2 parents a20f6ed + 54d19a4 commit fefc05f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion kmodes/util/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ def encode_features(X, enc_map=None):
else:
fit = False

Xenc = np.zeros(X.shape).astype('int')
Xenc = np.zeros(X.shape, dtype='uint32')
for ii in range(X.shape[1]):
if fit:
col_enc = {val: jj for jj, val in enumerate(np.unique(X[:, ii]))
Expand Down

0 comments on commit fefc05f

Please sign in to comment.