| 29 | |
| 30 | |
| 31 | class 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 | |
| 47 | def create_kernel() -> Kernel: |
nothing calls this directly
no test coverage detected
searching dependent graphs…