Skip to content

Commit

Permalink
histogram
Browse files Browse the repository at this point in the history
  • Loading branch information
Jakub Tarnawski committed Oct 30, 2023
1 parent 37d9abf commit e3ca65d
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions tests/utils/partition_hmetis.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -485,6 +485,16 @@ int aux_main(const std::string &input_file,
shard_id, shard_to_count_of_GT_pts[query_id][shard_id]);
// shard_to_count_of_GT_pts[query_id][shard_id] will be(come) 0 if
// wasn't present
if (query_id == 5) {
// histogram to stare at
diskann::cout << "query_id 5, shard_id " << shard_id << ", count "
<< shard_to_count_of_GT_pts[query_id][shard_id]
<< ", dist = "
<< math_utils::calc_distance(
queries_float.get() + query_id * dim,
centroids.get() + shard_id * dim, dim)
<< std::endl;
}
}
}

Expand Down

0 comments on commit e3ca65d

Please sign in to comment.