We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d64d874 commit 9c69a90Copy full SHA for 9c69a90
1 file changed
server/preprocessing/other-scripts/cluster.R
@@ -32,7 +32,7 @@ create_clusters <- function(distance_matrix, max_clusters=-1, method="ward.D") {
32
num_clusters <- tryCatch({
33
cut_off <- get_cut_off(css_cluster, attempt)
34
attempt <- attempt+1
35
- if (attempt > 500) cut_off$k else NA
+ if (attempt > 100) cut_off$k else max_clusters
36
}, error = function(err){
37
vclog$debug(err$message)
38
return (NA)
0 commit comments