-
Notifications
You must be signed in to change notification settings - Fork 124
feat: method for clustering new data kmeans added #238
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
base: master
Are you sure you want to change the base?
Changes from 1 commit
82e9ab2
9cccfb2
32cc28e
86bc032
f33eedd
546805d
a11a636
ca29e80
48a8c0e
30c98f9
022c2f7
467b4be
7d4b7d4
d51e5d8
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -204,4 +204,11 @@ end | |
end | ||
end | ||
|
||
@testset "get cluster assigments" begin | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Please also add the testset to There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I've added the test to cover the case |
||
X = rand(5, 100) | ||
R = kmeans(X, 10; maxiter=200) | ||
clusters_from_get_cluster_assignments = get_cluster_assignments(X, R); | ||
@test R.assignments == clusters_from_get_cluster_assignments | ||
davidbp marked this conversation as resolved.
Outdated
Show resolved
Hide resolved
|
||
end | ||
|
||
end |
Uh oh!
There was an error while loading. Please reload this page.