Commit 712fdd83 authored by Florian Grosse's avatar Florian Grosse
Browse files

Catch construction methods that generate only one big cluster

parent a259e2b7
......@@ -106,14 +106,16 @@ function _construction_loop(::Conceptual, block, modelcandidates,
# outsourced to separate function
predictions = conceptual_eval_predictions(candid, candidatename, block)
clustersizes = counts(predictions)
keep::Bool = all(>(threshold), clustersizes)
keep_clusternumber = length(clustersizes) > 1
keep_sizes = all(>(threshold), clustersizes)
if verbose
println("Candidate: $(candidatename)")
show(stdout, "text/plain", clustersizes)
println()
if !keep println("Dropped due to not fulfilling minimal category size of ", threshold) end
if !keep_sizes println("Dropped due to not fulfilling minimal category size of ", threshold) end
if !keep_clusternumber println("Dropped because only a single big cluster was generated.") end
end
if keep
if keep_clusternumber & keep_sizes
push!(modelnames, candidatename)
push!(targetsvectors, predictions)
end
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment