We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent a11c845 commit ea8e963Copy full SHA for ea8e963
src/subsetselection/kmeans.jl
@@ -2,13 +2,13 @@ import PotentialLearning: get_random_subset
2
export KMeans
3
4
struct KMeans <: SubsetSelector
5
- assign :: Vector
6
- c :: Vector
+ assign :: Vector{<:Int}
+ c :: Vector{<:Int}
7
batch_size :: Int
8
end
9
-function KMeans(assign::Vector, c::Vector, batch_size::Int)
10
- return KMeans(assign, c, batch_size)
11
-end
+# function KMeans(assign::Vector, c::Vector, batch_size::Int)
+# return KMeans(assign, c, batch_size)
+# end
12
function KMeans(desc::Vector, k::Int, batch_size::Int)
13
A = Matrix(reduce(hcat, desc))
14
res = kmeans(A, k)
0 commit comments