-
Notifications
You must be signed in to change notification settings - Fork 1
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
[Algorithms] Add clustering algorithms #20
base: master
Are you sure you want to change the base?
Conversation
In my initial review I couldn't understand how the cluster membership was being cleared, so I wrote this test. Perhaps its useful to retain, despite the fact that your implementation works fine and the test passes with no modification to the algo.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
In my initial review I couldn't understand how the cluster membership was being cleared, so I wrote a new KMeansClustererTest.
Perhaps its useful to retain, despite the fact that your implementation works fine and the test passes with no modification to the algo.
Assets/Tests/EditMode/ClusterTest.cs
Outdated
|
||
[Test] | ||
public void TestCentroid() { | ||
const float radius = 3; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Unused variable prompting linter warning
Assets/Tests/EditMode/ClusterTest.cs
Outdated
|
||
[Test] | ||
public void TestRecenter() { | ||
const float radius = 3; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Unused variable prompting linter warning
Sorry about that
I recommend updating the branch from master as part of the PR |
This PR adds some clustering algorithms and helper classes, e.g., the
Cluster
class and theIClusterer
interface. Constrained clustering algorithms are also included and constrain the size and radius of each cluster.