You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
For a "Base" kernel, where the kernel function is simply a function applied on some metric between two vectors of real, you only need to:
15
+
- Define your struct inheriting from `Kernel`.
16
+
- Define a `kappa` function.
17
+
- Define the metric used `SqEuclidean`, `DotProduct` etc. Note that the term "metric" is here overabused.
18
+
- Optional : Define any parameter of your kernel as `trainable` by Flux.jl if you want to perform optimization on the parameters. We recommend wrapping all parameters in arrays to allow them to be mutable.
19
+
20
+
Once these functions are defined, you can use all the wrapping functions of KernelFuntions.jl
0 commit comments