Skip to content

Commit

Permalink
temp knn
Browse files Browse the repository at this point in the history
  • Loading branch information
adarshyoga committed Apr 19, 2024
1 parent 223e70b commit 04b4fcb
Showing 1 changed file with 4 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -98,11 +98,10 @@ sycl::event knn_impl(sycl::queue q,
}
}

// // simple vote
// for (size_t j = 0; j < k; ++j) {
// d_votes_to_classes[i * classes_num +
// queue_neighbors[j].label]++;
// }
// simple vote
for (size_t j = 0; j < k; ++j) {
d_votes_to_classes[(i*classes_num) + (queue_neighbors[j].label)] += 1.0;
}

IntTy max_ind = 0;
FpTy max_value = 0.0;
Expand Down

0 comments on commit 04b4fcb

Please sign in to comment.