this is my code:
using Distances
dm=pairwise(dist, X1, dims=2)
LoadError: UndefVarError: pairwise not defined
Stacktrace:
[1] _kmeans!(X::Matrix{Float64}, weights::Nothing, centers::Matrix{Float64}, maxiter::Int64, tol::Float64, displevel::Int64, distance::Euclidean)
@ Clustering C:\Users\dell.julia\packages\Clustering\tt9vc\src\kmeans.jl:138
[2] kmeans!(X::Matrix{Float64}, centers::Matrix{Float64}; weights::Nothing, maxiter::Int64, tol::Float64, display::Symbol, distance::Euclidean)
@ Clustering C:\Users\dell.julia\packages\Clustering\tt9vc\src\kmeans.jl:70
[3] kmeans(X::Matrix{Float64}, k::Int64; weights::Nothing, init::Symbol, maxiter::Int64, tol::Float64, display::Symbol, distance::Euclidean)
@ Clustering C:\Users\dell.julia\packages\Clustering\tt9vc\src\kmeans.jl:112
[4] top-level scope
@ C:\Users\dell\Desktop\工程2\pca.jl:33
[5] eval
@ .\boot.jl:360 [inlined]
[6] include_string(mapexpr::typeof(identity), mod::Module, code::String, filename::String)
@ Base .\loading.jl:1116
in expression starting at C:\Users\dell\Desktop\工程2\pca.jl:30
WARNING: both Distances and StatsBase export “pairwise”; uses of it in module Main must be qualified
LoadError: UndefVarError: pairwise not defined
Stacktrace:
[1] _kmeans!(X::Matrix{Float64}, weights::Nothing, centers::Matrix{Float64}, maxiter::Int64, tol::Float64, displevel::Int64, distance::Euclidean)
@ Clustering C:\Users\dell.julia\packages\Clustering\tt9vc\src\kmeans.jl:138
[2] kmeans!(X::Matrix{Float64}, centers::Matrix{Float64}; weights::Nothing, maxiter::Int64, tol::Float64, display::Symbol, distance::Euclidean)
@ Clustering C:\Users\dell.julia\packages\Clustering\tt9vc\src\kmeans.jl:70
[3] kmeans(X::Matrix{Float64}, k::Int64; weights::Nothing, init::Symbol, maxiter::Int64, tol::Float64, display::Symbol, distance::Euclidean)
@ Clustering C:\Users\dell.julia\packages\Clustering\tt9vc\src\kmeans.jl:112
[4] top-level scope
@ C:\Users\dell\Desktop\工程2\pca.jl:33
[5] eval
@ .\boot.jl:360 [inlined]
[6] include_string(mapexpr::typeof(identity), mod::Module, code::String, filename::String)
@ Base .\loading.jl:1116
why is that?thank you !!!