Skip to content

Commit

Permalink
style check
Browse files Browse the repository at this point in the history
  • Loading branch information
divyegala committed Mar 25, 2021
1 parent 7d0d34c commit 2ed53c1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cpp/src_prims/metrics/batched/silhouette_score.cuh
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ __global__ void fill_b_kernel(value_t *b, const label_idx *y, value_idx n_rows,
// b is also max if col cluster count is 0
// however, b is 0 if self cluster count is 1
if (row_cluster == idy || col_cluster_count == 0) {
if (cluster_counts[row_cluster] == 1 ) {
if (cluster_counts[row_cluster] == 1) {
b[idx * n_labels + idy] = 0;
} else {
b[idx * n_labels + idy] = std::numeric_limits<value_t>::max();
Expand Down

0 comments on commit 2ed53c1

Please sign in to comment.