@@ -14,21 +14,21 @@ The aim is to make the API as model-agnostic as possible while still being user-
14
14
X = reshape (collect (range (- 3.0 ,3.0 ,length= 100 )),:,1 )
15
15
# Set simple scaling of the data
16
16
k₁ = SqExponentialKernel (1.0 )
17
- K₁ = kernelmatrix (k,X,obsdim= 1 )
17
+ K₁ = kernelmatrix (k₁ ,X,obsdim= 1 )
18
18
19
19
# Set a function transformation on the data
20
20
k₂ = MaternKernel (FunctionTransform (x-> sin .(x)))
21
- K₂ = kernelmatrix (k,X,obsdim= 1 )
21
+ K₂ = kernelmatrix (k₂ ,X,obsdim= 1 )
22
22
23
23
# Set a matrix premultiplication on the data
24
- k₃ = PolynomialKernel (LowRankTransform (randn (4 ,1 )),0 .0 ,2 .0 )
25
- K₃ = kernelmatrix (k,X,obsdim= 1 )
24
+ k₃ = PolynomialKernel (LowRankTransform (randn (4 ,1 )),2 .0 ,0 .0 )
25
+ K₃ = kernelmatrix (k₃ ,X,obsdim= 1 )
26
26
27
27
# Add and sum kernels
28
28
k₄ = 0.5 * SqExponentialKernel ()* LinearKernel (0.5 ) + 0.4 * k₂
29
- K₄ = kernelmatrix (k,X,obsdim= 1 )
29
+ K₄ = kernelmatrix (k₄ ,X,obsdim= 1 )
30
30
31
- plot (heatmap .([K₁,K₂,K₃,K₄],yflip= true ,colorbar= false )... ,layout= (2 ,2 ))
31
+ plot (heatmap .([K₁,K₂,K₃,K₄],yflip= true ,colorbar= false )... ,layout= (2 ,2 ),title = [ " K₁ " " K₂ " " K₃ " " K₄ " ] )
32
32
```
33
33
<p align =center >
34
34
<img src =" docs/src/assets/heatmap_combination.png " width =400px >
0 commit comments