salmon.triplets.samplers.RoundRobin

class salmon.triplets.samplers.RoundRobin(*args, **kwargs)

Let the head of the triplet query rotate through the available items while choosing the bottom two items randomly. This class is user specific if the /query?puid=foo endpoint is hit.

__init__(*args, **kwargs)
Parameters
nint

Number of objects

identstr

Identifier of the algorithm

targetsOptional[List[int]]

The allowable indexes to ask about.