MCPcopy
hub / github.com/GPflow/GPflow / Datum

Class Datum

tests/integration/test_linear_noise.py:31–44  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

29
30
31class Datum:
32 cs = ShapeChecker().check_shape
33
34 rng = np.random.default_rng(20220630)
35 n = 100
36 X: AnyNDArray = cs(rng.random((n, 1), dtype=default_float()), "[N, 1]")
37 noise_slope = -0.7
38 noise_offset = 0.7
39 noise = cs(
40 (noise_slope * X + noise_offset) * rng.standard_normal((n, 1), dtype=default_float()),
41 "[N, 1]",
42 )
43 Y = cs(np.sin(5 * X) + noise, "[N, 1]")
44 data = X, Y
45
46
47def create_kernel() -> Kernel:

Callers

nothing calls this directly

Calls 1

default_floatFunction · 0.90

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…