cblearn.datasets.make_all_triplet_indices#

cblearn.datasets.make_all_triplet_indices(n_objects, monotonic)[source]#

Make all triplet indices for a number of objects.

Parameters:
  • n_objects (int) – Number of objects to represent in triplets

  • monotonic (bool) – Generate only triplets (i, j, k), such that j < i < k.

Returns:

Numpy array (n_triplets, 3) of triplet indices. n_triplets can become quite large by

Return type:

ndarray