Skip to content

Commit

Permalink
Update project
Browse files Browse the repository at this point in the history
  • Loading branch information
raphasampaio committed Feb 13, 2025
1 parent e19eef4 commit eafaa22
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions test/runtests.jl
Original file line number Diff line number Diff line change
Expand Up @@ -325,6 +325,10 @@ function test_all()
data = [2 5; 3 4; 4 6; 8 3; 9 2; 10 5; 6 10; 7 8; 8 9]
assignments = [1, 1, 1, 2, 2, 2, 3, 3, 3]
@test UnsupervisedClustering.silhouette_score(data = data, assignments = assignments, metric = Euclidean()) 0.6148550278971129

data = [1.0 0.0; 1.0 1.0; 1.0 2.0; 2.0 3.0; 2.0 2.0; 1.0 2.0; 3.0 1.0; 3.0 3.0; 2.0 1.0]
assignments = [1, 1, 2, 2, 2, 2, 3, 3, 3]
@test UnsupervisedClustering.silhouette_score(data = data, assignments = assignments, metric = Euclidean()) 0.23320709938729836
end

verbose = true
Expand Down

0 comments on commit eafaa22

Please sign in to comment.