Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Code for 07.03-05_K-means_featurization #8

Open
olutobi01 opened this issue Nov 19, 2018 · 0 comments
Open

Code for 07.03-05_K-means_featurization #8

olutobi01 opened this issue Nov 19, 2018 · 0 comments

Comments

@olutobi01
Copy link

I refer you to the fit method of the KMeansFeaturizer class for the code listing mentioned in the subject.
When the pretrain approach was used (i.e. including information from the class labels), the second re run of the k-means algorithm to get the clusters in the original space was initialized with the init argument as init=km_model_pretrain.cluster_centers_[:,:2].
I think this will only work with a two feature dataset and will break for a dataset with additional features.
Can you please clarify your approach.
Thanks

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant