Using tinygp
with "kernel
as a Pytree" approach
#80
Labels
documentation
Improvements or additions to documentation
tinygp
with "kernel
as a Pytree" approach
#80
Hi @dfm, as we have discussed in #79, I have the following thoughts about presenting the idea of using kernels as Pytrees.
kernel
as aparam
seems a more natural and efficient way of usingtinygp
. Considering that, shall we add or update the following code (Colab link) to the Tips section?:(
log_kernel
may not be the best name here, so you may suggest something better)kernel
as a Pytree" approach will have the most impact in the Getting Started section due to the use of kernel combinations. The current code can be translated to something like the following (Colab link). I could not makejaxopt
work due to some reasons (maybe it is detecting parameters as floats instead of DeviceArrays) thus, I usedoptax
instead (error trace is present in the colab).I did not find something related to the above line in the same section. Was this line written to show something like we are discussing now? In that case, I can modify the current code for the spectral mixture kernel to showcase the new approach.
Please let me know your thoughts on these proposals.
P.S.: Feel free to drop your quick suggestions directly on the colab as comments!
Edit:
I think to make a new kernel work in the above approach, it needs to be defined something like this, right?
The text was updated successfully, but these errors were encountered: