Skip to content

Commit ee2a314

Browse files
authored
Fixes for latest dbscan api
1 parent c3ac294 commit ee2a314

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

Project.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ Distances = "b4f34e82-e78d-54a5-968a-f98e89d6e8f7"
99
MLJModelInterface = "e80e1ace-859a-464e-9ed9-23947d8ae3ea"
1010

1111
[compat]
12-
Clustering = "0.14, 0.15"
12+
Clustering = "0.15"
1313
Distances = "0.9, 0.10"
1414
MLJModelInterface = "1.4"
1515
julia = "1.6"

src/MLJClusteringInterface.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -139,7 +139,7 @@ function MMI.predict(model::DBSCAN, ::Nothing, X)
139139
leafsize=model.leafsize,
140140
min_neighbors=model.min_neighbors,
141141
min_cluster_size=model.min_cluster_size,
142-
)
142+
).clusters
143143
nclusters = length(clusters)
144144

145145
# assignments and point types

0 commit comments

Comments
 (0)