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

Transform function #91

Open
hajarhomayouni opened this issue Aug 15, 2018 · 4 comments
Open

Transform function #91

hajarhomayouni opened this issue Aug 15, 2018 · 4 comments
Labels

Comments

@hajarhomayouni
Copy link

Does K-prototypes implement the transform function of k-means, which returns a distance matrix?

@nicodv
Copy link
Owner

nicodv commented Aug 17, 2018

Can you be more specific, @hajarhomayouni ?

@hajarhomayouni
Copy link
Author

Sklearn K-means has a fit_transform function that transforms X to a cluster-distance space.
Is there a same function for k-prototypes?

@nicodv
Copy link
Owner

nicodv commented Aug 17, 2018

No, there's no transform method currently. KPrototypes would have to return both a dissimilarity matrix and a distance matrix then. Wouldn't be too hard to implement, I think.

What's your use case?

@hajarhomayouni
Copy link
Author

I am trying to find local outliers in each cluster. So, I needed to calculate the distance between each data point to the corresponding cluster center.
The transform function would give me the entire matrix, but now I need to calculate dissimilarity for each data point, which is not hard to implement.

Thanks.

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

No branches or pull requests

2 participants