skactiveml.utils.rand_argmin#

skactiveml.utils.rand_argmin(a, random_state=None, **argmin_kwargs)[source]#

Returns index of minimum value. In case of ties, a randomly selected index of the minimum elements is returned.

Parameters
aarray-like

Indexable data-structure of whose minimum element’s index is to be determined.

random_stateint or RandomState instance or None, default=None

Determines random number generation for shuffling the data. Pass an int for reproducible results across multiple function calls.

argmin_kwargsdict-like

Keyword argument passed to numpy function argmin.

Returns
index_arrayndarray of ints

Array of indices into the array. It has the same shape as a.shape with the dimension along axis removed.