Source code for btb.selection.uniform

import random

from btb.selection.selector import Selector


[docs]class Uniform(Selector): """Uniform selector Selects a choice uniformly at random. """
[docs] def select(self, choice_scores): return random.choice(self.choices)