Skip to content

implement k-mediods algorithm and tests #3

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
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

gioravioli
Copy link

Implement kMediods algorithm with these assumptions:

  • All data is input in the correct format
  • We use the manhattan distance

Run tests with the following: python -m unittest -v test.test_k_mediods

Implement kMediods algorithm

Run tests with the following:

python -m unittest -v test.test_k_medoids
Copy link
Owner

@Ecohen4 Ecohen4 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Overall, very nice. Just a few comments:

  1. Written in Python 2, which has been superseded by Python 3 for years.
  2. Only two commit messages -- I would have expected a commit-as-you-go approach. Atomic commits also provides insight to the reviewer on your approach and order of operations.
  3. Test are green, which is always good.

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

Successfully merging this pull request may close these issues.

2 participants