NameSelector

class baybe.parameters.selectors.NameSelector[source]

Bases: ParameterSelector

Select parameters by name patterns.

Public methods

__init__(patterns, *[, exclude, regex])

Method generated by attrs for class NameSelector.

Public attributes and properties

patterns

The patterns to be matched against.

regex

If False, the provided patterns are interpreted as literal strings.

exclude

Boolean flag indicating whether invert the selection criterion.

__init__(patterns: Sequence[_T], *, exclude: bool = False, regex: bool = True)

Method generated by attrs for class NameSelector.

For details on the parameters, see Public attributes and properties.

exclude: bool

Boolean flag indicating whether invert the selection criterion.

patterns: tuple[str, ...]

The patterns to be matched against.

regex: bool

If False, the provided patterns are interpreted as literal strings.