python - scikit-learn: Identification property in clustering dataset -


while performing kmeans clustering in scikit-learn, need feed dataset of shape (n_samples, n_features). each sample of dataset corresponds user, identified user_id, not feature. so, if feed dataset in format, lose identification info each sample.

so, how store user_ids in dataset?


Comments

Popular posts from this blog

java - BeanIO write annotated class to fixedlength -

Using Java 8 lambdas/transformations to combine and flatten two Maps -

How to connect android app to App engine -