SessionProgramTuner.get_baselines#

from tmlt.tune import SessionProgramTuner
classmethod SessionProgramTuner.get_baselines()#

Return all baselines defined in the class.

If no baseline options or custom baselines are specified, returns the dictionary mapping ‘default` baseline with default NoPrivacySession configuration options. Otherwise, retrieves baselines specified using the baseline_options class variable and @baseline decorator and returns a dictionary mapping baseline names to either Options objects or callables for custom baselines.

Parameters:

cls – The class to search for custom baselines.

Raises:

ValueError – If baseline options are not distinct or not of appropriate type.

Return type:

Dict[str, Union[Options, Callable]]