Skip to content

Providing intrinsic clustering quality indices #189

Providing intrinsic clustering quality indices

Providing intrinsic clustering quality indices #189

Triggered via pull request October 29, 2023 21:56
@alystalyst
synchronize #257
master
Status Failure
Total duration 13m 0s
Artifacts

ci.yml

on: pull_request
Matrix: test
Fit to window
Zoom out
Zoom in

Annotations

8 errors
Julia 1 - macos-latest - x64
Process completed with exit code 1.
Julia 1 - ubuntu-latest - x64
Process completed with exit code 1.
Julia 1 - ubuntu-latest - x86
Process completed with exit code 1.
Julia 1.0 - ubuntu-latest - x64
Process completed with exit code 1.
Julia 1 - windows-latest - x64
Process completed with exit code 1.
Julia nightly - ubuntu-latest - x64
Process completed with exit code 1.
Documentation: ../../../.julia/packages/Documenter/nQAq5/src/utilities/utilities.jl#L44
failed to run `@example` block in source/validate.md:156-182 ```@example using Plots, Clustering X = hcat([4., 5.] .+ 0.4 * randn(2, 10), [9., -5.] .+ 0.4 * randn(2, 5), [-4., -9.] .+ 1 * randn(2, 5)) clusterings = kmeans.(Ref(X), 2:5) hard_indices = [:silhouettes, :calinski_harabasz, :xie_beni, :davies_bouldin, :dunn] kmeans_quality = Dict(qidx => clustering_quality.(Ref(X), clusterings, quality_index = qidx) for qidx in hard_indices ) p = [ plot(2:5, kmeans_quality[qidx], marker = :circle, title = string.(qidx), label = nothing, ) for qidx in hard_indices ] plot(p..., layout = (3,2), plot_title = "Quality indices for various number of clusters" ) ``` exception = UndefVarError: `center` not defined Stacktrace: [1] (::Clustering.var"#49#50"{Distances.SqEuclidean, Matrix{Float64}})(::Tuple{Int64, Int64}) @ Clustering ./abstractarray.jl:0 [2] MappingRF @ ./reduce.jl:95 [inlined] [3] _foldl_impl(op::Base.MappingRF{Clustering.var"#49#50"{Distances.SqEuclidean, Matrix{Float64}}, Base.BottomRF{typeof(Base.add_sum)}}, init::Base._InitialValue, itr::Base.Iterators.Enumerate{Vector{Int64}}) @ Base ./reduce.jl:58 [4] foldl_impl @ ./reduce.jl:48 [inlined] [5] mapfoldl_impl @ ./reduce.jl:44 [inlined] [6] #mapfoldl#288 @ ./reduce.jl:170 [inlined] [7] mapfoldl @ ./reduce.jl:170 [inlined] [8] #mapreduce#292 @ ./reduce.jl:302 [inlined] [9] mapreduce @ ./reduce.jl:302 [inlined] [10] #sum#295 @ ./reduce.jl:530 [inlined] [11] sum @ ./reduce.jl:530 [inlined] [12] #sum#296 @ ./reduce.jl:559 [inlined] [13] sum @ ./reduce.jl:559 [inlined] [14] _inner_inertia @ ~/work/Clustering.jl/Clustering.jl/src/clustering_quality.jl:172 [inlined] [15] _cluquality_calinski_harabasz(data::Matrix{Float64}, centers::Matrix{Float64}, assignments::Vector{Int64}, metric::Distances.SqEuclidean) @ Clustering ~/work/Clustering.jl/Clustering.jl/src/clustering_quality.jl:199 [16] clustering_quality(data::Matrix{Float64}, centers::Matrix{Float64}, assignments::Vector{Int64}; quality_index::Symbol, metric::Distances.SqEuclidean) @ Clustering ~/work/Clustering.jl/Clustering.jl/src/clustering_quality.jl:73 [17] clustering_quality @ ~/work/Clustering.jl/Clustering.jl/src/clustering_quality.jl:54 [inlined] [18] #clustering_quality#40 @ ~/work/Clustering.jl/Clustering.jl/src/clustering_quality.jl:87 [inlined] [19] clustering_quality @ ~/work/Clustering.jl/Clustering.jl/src/clustering_quality.jl:87 [inlined] [20] #43 @ ./broadcast.jl:1297 [inlined] [21] _broadcast_getindex_evalf @ ./broadcast.jl:683 [inlined] [22] _broadcast_getindex @ ./broadcast.jl:656 [inlined] [23] getindex @ ./broadcast.jl:610 [inlined] [24] copy @ ./broadcast.jl:912 [inlined] [25] materialize(bc::Base.Broadcast.Broadcasted{Base.Broadcast.DefaultArrayStyle{1}, Nothing, Base.Broadcast.var"#43#44"{Base.Pairs{Symbol, Symbol, Tuple{Symbol}, NamedTuple{(:quality_index,), Tuple{Symbol}}}, typeof(clustering_quality)}, Tuple{Base.RefValue{Matrix{Float64}}, Vector{KmeansResult{Matrix{Float64}, Float64, Int64}}}}) @ Base.Broadcast ./broadcast.jl:873 [26] (::Main.__atexample__300.var"#1#2")(qidx::Symbol) @ Main.__atexample__300 ./none:0 [27] iterate @ ./generator.jl:47 [inlined] [28] _all(f::Base.var"#372#374", itr::Base.Generator{Vector{Symbol}, Main.__atexample__300.var"#1#2"}, #unused#::Colon) @ Base ./reduce.jl:1292 [29] all @ ./reduce.jl:1278 [inlined] [30] Dict(kv::Base.Generator{Vector{Symbol}, Main.__atexample__300.var"#1#2"}) @ Base ./dict.jl:111 [31] top-level scope @ validate.md:165 [32] eval @ ./boot.jl:370 [inlined] [33] #54 @ ~/.julia/packages/Documenter/nQAq5/src/expander_pi
Documentation
Process completed with exit code 1.