Providing intrinsic clustering quality indices #170
ci.yml
on: pull_request
Documentation
15m 54s
Matrix: test
Annotations
3 errors
Julia 1.0 - ubuntu-latest - x64
Process completed with exit code 1.
|
Documentation:
../../../.julia/packages/Documenter/9kOxY/src/utilities/utilities.jl#L44
failed to run `@example` block in source/validate.md:164-192
```@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))
fuzziness = 2
soft_indices = [:calinski_harabasz, :xie_beni]
fuzzy_clusterings = fuzzy_cmeans.(Ref(X), 2:5, fuzziness)
fuzzy_cmeans_quality =
Dict(qidx => clustering_quality.(Ref(X), fuzzy_clusterings, fuzziness, quality_index = qidx)
for qidx in soft_indices
)
p = [
plot(2:5, fuzzy_cmeans_quality[qidx],
marker = :circle,
title = string.(qidx),
label = nothing,
)
for qidx in soft_indices
]
plot(p...,
layout = (2,1),
plot_title = "Quality indices for various number of clusters"
)
```
exception =
UndefVarError: `inner_inertia` not defined
Stacktrace:
[1] _cluquality_calinski_harabasz(X::Matrix{Float64}, centers::Matrix{Float64}, weights::Matrix{Float64}, fuzziness::Int64, distance::Distances.SqEuclidean)
@ Clustering ~/work/Clustering.jl/Clustering.jl/src/clustering_quality.jl:242
[2] clustering_quality(X::Matrix{Float64}, centers::Matrix{Float64}, weights::Matrix{Float64}, fuzziness::Int64, distance::Distances.SqEuclidean; quality_index::Symbol)
@ Clustering ~/work/Clustering.jl/Clustering.jl/src/clustering_quality.jl:110
[3] clustering_quality
@ ~/work/Clustering.jl/Clustering.jl/src/clustering_quality.jl:88 [inlined]
[4] #clustering_quality#42
@ ~/work/Clustering.jl/Clustering.jl/src/clustering_quality.jl:118 [inlined]
[5] clustering_quality (repeats 2 times)
@ ~/work/Clustering.jl/Clustering.jl/src/clustering_quality.jl:118 [inlined]
[6] #43
@ ./broadcast.jl:1297 [inlined]
[7] _broadcast_getindex_evalf
@ ./broadcast.jl:683 [inlined]
[8] _broadcast_getindex
@ ./broadcast.jl:656 [inlined]
[9] getindex
@ ./broadcast.jl:610 [inlined]
[10] copy
@ ./broadcast.jl:912 [inlined]
[11] 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{FuzzyCMeansResult{Float64}}, Int64}})
@ Base.Broadcast ./broadcast.jl:873
[12] (::Main.__atexample__306.var"#1#2")(qidx::Symbol)
@ Main.__atexample__306 ./none:0
[13] iterate
@ ./generator.jl:47 [inlined]
[14] _all(f::Base.var"#372#374", itr::Base.Generator{Vector{Symbol}, Main.__atexample__306.var"#1#2"}, #unused#::Colon)
@ Base ./reduce.jl:1282
[15] all
@ ./reduce.jl:1278 [inlined]
[16] Dict(kv::Base.Generator{Vector{Symbol}, Main.__atexample__306.var"#1#2"})
@ Base ./dict.jl:111
[17] top-level scope
@ validate.md:174
[18] eval
@ ./boot.jl:370 [inlined]
[19] #54
@ ~/.julia/packages/Documenter/9kOxY/src/expander_pipeline.jl:738 [inlined]
[20] cd(f::Documenter.var"#54#56"{Module, Expr}, dir::String)
@ Base.Filesystem ./file.jl:112
[21] (::Documenter.var"#53#55"{Documenter.Page, Module, Expr})()
@ Documenter ~/.julia/packages/Documenter/9kOxY/src/expander_pipeline.jl:737
[22] (::IOCapture.var"#3#5"{DataType, Documenter.var"#53#55"{Documenter.Page, Module, Expr}, Task, IOContext{Base.PipeEndpoint}, IOContext{Base.PipeEndpoint}, IOContext{Base.PipeEndpoint}, IOContext{Base.PipeEndpoint}})()
@ IOCapture ~/.julia/packages/IOCapture/8Uj7o/src/IOCapture.jl:119
[23] with_logstate(f::Function, logstate::Any)
@ Base.CoreLogging ./logging.jl:514
[24] with_logger
@ ./logging.jl:626 [inlined]
[25] capture(f::Documenter.var"#53#55"{Documenter.Page, Module, Expr}; rethrow::Type, color::Bool)
@ IOCapture ~/.julia/packages/IOCapture/8Uj7o/src/IOCapture.jl:116
[26] runner(#unused#::Type{Documenter.Expanders.ExampleBlocks}, node::MarkdownAST.Node{Nothing}, page::Doc
|
Documentation
Process completed with exit code 1.
|