Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Added hard and soft Kmeans clustering with tests #71

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

Open
kenluck2001 wants to merge 2 commits into ddbourgin:master
base: master
Choose a base branch
Loading
from kenluck2001:kmeans_hard_soft

Conversation

@kenluck2001
Copy link
Contributor

@kenluck2001 kenluck2001 commented May 27, 2021
edited
Loading

This submission addresses the issue tracked in #69
We have implemented a soft and hard version of kmeans clustering.
The works done can be summarized as follows:

  1. Hard kmeans clustering with fixed assignment of data points to only one cluster at a time.
  2. Soft kmeans clustering with probabilistic assignment of data points. Each data point has a membership degree in each cluster. The highest probable cluster could then be assigned as the cluster index of the data. Alternatively, the probability distribution can be used for any other purpose as it captures our uncertainty of the clustering routine.
  • Is the code you are submitting your own work? Yes it is my original work
  • Did you properly attribute the authors of any code you referenced? Yes I did
  • Did you write unit tests for your new model? Yes I added unit tests by comparing algorithms to base implementation in scikit-learn.
  • Does your submission pass the unit tests? Yes it does
  • Did you write documentation for your new model? For now, it is readme and code documentation
  • Have you formatted your code using the black deaults? Only followed the numpy styling guide

ddbourgin reacted with hooray emoji
@kenluck2001 kenluck2001 changed the title (削除) Added hard and soft Kmeans clustering with tests tests (削除ここまで) (追記) Added hard and soft Kmeans clustering with tests (追記ここまで) May 27, 2021
Copy link
Owner

Thanks for this, @kenluck2001 ! At first glance this looks great - I'm going to reserve some time to go through this more thoroughly shortly.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Reviewers

1 more reviewer

@qianyizhang qianyizhang qianyizhang left review comments

Reviewers whose approvals may not affect merge requirements

Assignees

No one assigned

Labels

None yet

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

AltStyle によって変換されたページ (->オリジナル) /