gpflow.experimental.check_shapes.bool_specs#
Code for specifying and evaluating boolean expressions.
Classes#
gpflow.experimental.check_shapes.bool_specs.ParsedAndBoolSpec#
- class gpflow.experimental.check_shapes.bool_specs.ParsedAndBoolSpec(left, right)[source]#
Bases:
gpflow.experimental.check_shapes.bool_specs.ParsedBoolSpec
An “and” expression.
- Parameters
left (
ParsedBoolSpec
) –right (
ParsedBoolSpec
) –
- get(arg_map, context)[source]#
Evaluate this boolean value.
- Parameters
arg_map (
Mapping
[str
,Any
]) –context (
ErrorContext
) –
- Return type
Tuple
[bool
,ErrorContext
]
gpflow.experimental.check_shapes.bool_specs.ParsedArgumentRefBoolSpec#
- class gpflow.experimental.check_shapes.bool_specs.ParsedArgumentRefBoolSpec(argument_ref)[source]#
Bases:
gpflow.experimental.check_shapes.bool_specs.ParsedBoolSpec
A reference to an input argument.
- Parameters
argument_ref (
ArgumentRef
) –
- get(arg_map, context)[source]#
Evaluate this boolean value.
- Parameters
arg_map (
Mapping
[str
,Any
]) –context (
ErrorContext
) –
- Return type
Tuple
[bool
,ErrorContext
]
gpflow.experimental.check_shapes.bool_specs.ParsedBoolSpec#
- class gpflow.experimental.check_shapes.bool_specs.ParsedBoolSpec[source]#
Bases:
abc.ABC
A boolean expression.
- abstract get(arg_map, context)[source]#
Evaluate this boolean value.
- Parameters
arg_map (
Mapping
[str
,Any
]) –context (
ErrorContext
) –
- Return type
Tuple
[bool
,ErrorContext
]
gpflow.experimental.check_shapes.bool_specs.ParsedNotBoolSpec#
- class gpflow.experimental.check_shapes.bool_specs.ParsedNotBoolSpec(right)[source]#
Bases:
gpflow.experimental.check_shapes.bool_specs.ParsedBoolSpec
A “not” expression.
- Parameters
right (
ParsedBoolSpec
) –
- get(arg_map, context)[source]#
Evaluate this boolean value.
- Parameters
arg_map (
Mapping
[str
,Any
]) –context (
ErrorContext
) –
- Return type
Tuple
[bool
,ErrorContext
]
gpflow.experimental.check_shapes.bool_specs.ParsedOrBoolSpec#
- class gpflow.experimental.check_shapes.bool_specs.ParsedOrBoolSpec(left, right)[source]#
Bases:
gpflow.experimental.check_shapes.bool_specs.ParsedBoolSpec
An “or” expression.
- Parameters
left (
ParsedBoolSpec
) –right (
ParsedBoolSpec
) –
- get(arg_map, context)[source]#
Evaluate this boolean value.
- Parameters
arg_map (
Mapping
[str
,Any
]) –context (
ErrorContext
) –
- Return type
Tuple
[bool
,ErrorContext
]