Choice#

class sdm.processing.common.Choice(*args: object, method: Literal['random', 'round_robin'] = 'random')#

Bases: EnsembleProcessor, EnsembleInvertibleMixin

Route each table or ensemble member through one selected option.

Options are selected when the processor is fitted. Only selected options are fitted, and refitting selects again.

Parameters:
  • args (object) – Candidate processors or stateless callables.

  • method (Literal['random', 'round_robin']) – How to select options. "random" samples uniformly; "round_robin" assigns options by ensemble member position and selects the first option for a single table.

Capabilities#

Handled Semantic Types

instance-specific

Requires Fitting

✅