backend.spaces
Handles classes/named tuples for holding class, field, and attribute value(s)
ConfigSpace Objects#
class ConfigSpace()Class that holds information about the final values of spock class attributes
Attributes:
spock_cls- reference to spock class to store informationfields- dictionary of the current value of attributes
__init__#
def __init__(spock_cls: Type, fields: dict)Init call for ConfigSpace class
Arguments:
spock_cls- reference to spock class to store informationfields- dictionary of the current value of attributes
name#
@propertydef name() -> strReturns the name of the spock class associated with ConfigSpace
AttributeSpace Objects#
class AttributeSpace()Class that holds information about a single attribute that is mapped to a ConfigSpace
Attributes:
config_space- ConfigSpace that the attribute is contained inattribute- current Attribute class
__init__#
def __init__(attribute: Type[Attribute], config_space: ConfigSpace)Init call for AttributeSpace class
Arguments:
config_space- ConfigSpace that the attribute is contained inattribute- current Attribute class
field#
@propertydef field()Returns the field value from the ConfigSpace based on the attribute name
field#
@field.setterdef field(value)Setter for the field value from the ConfigSpace based on the attribute name