Skip to content

Commit

Permalink
testing knn
Browse files Browse the repository at this point in the history
  • Loading branch information
adarshyoga committed Apr 20, 2024
1 parent fb7f7e6 commit 7971b12
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -99,9 +99,11 @@ sycl::event knn_impl(sycl::queue q,
}

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

Expand Down

0 comments on commit 7971b12

Please sign in to comment.