select_representative_sample_indices

Note

This page is a reference documentation. It only explains the function signature, and not how to use it. Please refer to the Habitat Guide and Python API guide (v2.0) for usage.

select_representative_sample_indices(scores: ndarray, *, n_samples: int = 3) → list[int][source]

Pick sample indices spanning the score range (low / mid / high).

Parameters:
  • scores – Per-sample scalar used for ranking (e.g. sum of SHAP values).

  • n_samples – Number of indices to return.

Returns:

Distinct indices evenly spaced over the ranked scores.