addons.tune.ax
Handles the ax backend
#
AxTunerStatus Objectsclass AxTunerStatus(TypedDict)
Tuner status return object for Ax -- supports the service style API from Ax
Attributes:
client
- current AxClient instancetrial_index
- current trial index
#
AxInterface Objectsclass AxInterface(BaseInterface)
Specific override to support the Ax backend -- supports the service style API from Ax
#
__init__def __init__(tuner_config: AxTunerConfig, tuner_namespace)
AxInterface init call that maps variables, creates a map to fnc calls, and constructs the necessary underlying objects
Arguments:
tuner_config
- configuration object for the ax backendtuner_namespace
- tuner namespace that has attr classes that maps to an underlying library types
#
_ax_rangedef _ax_range(name, val)
Assemble the dictionary for ax range parameters
Arguments:
name
- parameter nameval
- current attr val
Returns:
dictionary that can be added to a parameter list
#
_ax_choicedef _ax_choice(name, val)
Assemble the dictionary for ax choice parameters
Arguments:
name
- parameter nameval
- current attr val
Returns:
dictionary that can be added to a parameter list