// Convert to numpy arrays, if needed.
Xnum = np.asanyarray(X[:, [ii for ii in range(X.shape[1])
if ii not in categorical]]).astype(float)
Xcat = np.asanyarray(X[:, categorical])
// Estimate a good value for gamma, which determines the weighing of
// categorical values in clusters (see Huang [1997]).
if gamma is None:
After Change
npoints = X.shape[0]
assert n_clusters < npoints, "More clusters than data points?"
Xnum, Xcat = _split_num_cat(X, categorical)
// Estimate a good value for gamma, which determines the weighing of
// categorical values in clusters (see Huang [1997]).