MCPcopy
hub / github.com/GPflow/GPflow / test_changepoints_init_fail

Function test_changepoints_init_fail

tests/gpflow/kernels/test_kernels.py:547–556  ·  view source on GitHub ↗
(
    locations: Sequence[float], steepness: Union[float, Sequence[float]], error_msg: str
)

Source from the content-addressed store, hash-verified

545 ],
546)
547def test_changepoints_init_fail(
548 locations: Sequence[float], steepness: Union[float, Sequence[float]], error_msg: str
549) -> None:
550 kernels: Sequence[Kernel] = [
551 Matern12(),
552 Linear(),
553 Matern32(),
554 ]
555 with pytest.raises(ValueError, match=error_msg):
556 ChangePoints(kernels, locations, steepness)
557
558
559@check_shapes(

Callers

nothing calls this directly

Calls 4

Matern12Class · 0.90
LinearClass · 0.90
Matern32Class · 0.90
ChangePointsClass · 0.90

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…