Skip to content

Commit 39e1c64

Browse files
committed
Updating kernel nbs
1 parent a0f59c4 commit 39e1c64

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

docs/nbs/kernels.ipynb

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -274,13 +274,15 @@
274274
"\n",
275275
" def __post_init__(self):\n",
276276
" self.c = self.period / 2.0 # in [0, \\pi]\n",
277-
" self._params = {\"tau\": jnp.array([4.0])}\n",
278277
"\n",
279278
" def __call__(self, x: f64[\"1 D\"], y: f64[\"1 D\"], params: dict) -> f64[\"1\"]:\n",
280279
" tau = params[\"tau\"]\n",
281280
" t = angular_distance(x, y, self.c)\n",
282281
" K = (1 + tau * t / self.c) * jnp.clip(1 - t / self.c, 0, jnp.inf) ** tau\n",
283-
" return K.squeeze()"
282+
" return K.squeeze()\n",
283+
" \n",
284+
" def _initialise_params(self, key: jr.PRNGKey) -> dict:\n",
285+
" return {\"tau\": jnp.array([4.0])}"
284286
]
285287
},
286288
{

0 commit comments

Comments
 (0)