lib/rumale/clustering/hdbscan.rb in rumale-0.18.4 vs lib/rumale/clustering/hdbscan.rb in rumale-0.18.5

- old
+ new

@@ -132,10 +132,11 @@ to_process = to_process.map { |n| [hierarchy[n].x, hierarchy[n].y] }.flatten if to_process.any? end res end + # rubocop:disable Metrics/AbcSize, Metrics/MethodLength, Metrics/PerceivedComplexity def condense_tree(hierarchy, min_cluster_size) n_edges = hierarchy.size root = 2 * n_edges n_points = n_edges + 1 next_label = n_points + 1 @@ -260,8 +261,9 @@ cluster = uf.find(n) res[n] = cluster < root ? -1 : cluster_label_map[cluster] || -1 end res end + # rubocop:enable Metrics/AbcSize, Metrics/MethodLength, Metrics/PerceivedComplexity end end end