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.

__call__(parameter)

Determine if a parameter should be included in the selection.

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.

__call__(parameter: Parameter)

Determine if a parameter should be included in the selection.

Return type:

bool

__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.