def METHOD_NAME(self, query_idx):
    assert query_idx >= self.max_query_idx
    self.max_query_idx = query_idx
    Run.log_metric("ranking/max_query_idx", query_idx, query_idx)
    Run.log_metric("ranking/num_queries_added", self.num_queries_added, query_idx)
    for depth in sorted(self.mrr_sums):
        score = self.mrr_sums[depth] / (query_idx+1.0)
        Run.log_metric("ranking/MRR." + str(depth), score, query_idx)
    for depth in sorted(self.success_sums):
        score = self.success_sums[depth] / (query_idx+1.0)
        Run.log_metric("ranking/Success." + str(depth), score, query_idx)
    for depth in sorted(self.recall_sums):
        score = self.recall_sums[depth] / (query_idx+1.0)
        Run.log_metric("ranking/Recall." + str(depth), score, query_idx)