rerank_standard

rerank_standard(sims, candidate_indices, top_k)

Take the top-k most similar candidates.

Parameters

Name Type Description Default
sims 1-D array of similarity scores for each candidate. required
candidate_indices 1-D array of point indices corresponding to sims. required
top_k Number of results to return. required

Returns

Name Type Description
np.ndarray of selected point indices, length <= top_k.