File tree Expand file tree Collapse file tree 7 files changed +11
-2
lines changed Expand file tree Collapse file tree 7 files changed +11
-2
lines changed Original file line number Diff line number Diff line change 8
8
9
9
# Standardised tests.
10
10
TestUtils. test_interface (k, Float64)
11
+ test_params (k, (Float64[],))
11
12
test_ADs (ZeroKernel)
12
13
end
13
14
@testset " WhiteKernel" begin
21
22
22
23
# Standardised tests.
23
24
TestUtils. test_interface (k, Float64)
25
+ test_params (k, (Float64[],))
24
26
test_ADs (WhiteKernel)
25
27
end
26
28
@testset " ConstantKernel" begin
32
34
@test metric (ConstantKernel ()) == KernelFunctions. Delta ()
33
35
@test metric (ConstantKernel (; c= 2.0 )) == KernelFunctions. Delta ()
34
36
@test repr (k) == " Constant Kernel (c = $(c) )"
35
- test_params (k, ([log (c)],))
36
37
37
38
# Standardised tests.
38
39
TestUtils. test_interface (k, Float64)
40
+ test_params (k, ([log (c)],))
39
41
test_ADs (c -> ConstantKernel (; c= first (c)), [c])
40
42
end
41
43
end
Original file line number Diff line number Diff line change 19
19
20
20
# Standardised tests.
21
21
TestUtils. test_interface (k, Vector{Float64})
22
+ test_params (k, (Float64[],))
22
23
test_ADs (CosineKernel)
23
24
end
Original file line number Diff line number Diff line change 21
21
22
22
# Standardised tests.
23
23
TestUtils. test_interface (k)
24
+ test_params (k, (Float64[],))
24
25
test_ADs (SEKernel)
25
26
end
26
27
@testset " ExponentialKernel" begin
39
40
40
41
# Standardised tests.
41
42
TestUtils. test_interface (k)
43
+ test_params (k, (Float64[],))
42
44
test_ADs (ExponentialKernel)
43
45
end
44
46
@testset " GammaExponentialKernel" begin
Original file line number Diff line number Diff line change 13
13
14
14
# Standardised tests. This kernel appears to be fairly numerically unstable.
15
15
TestUtils. test_interface (k; atol= 1e-3 )
16
+ test_params (k, (Float64[],))
16
17
test_ADs (ExponentiatedKernel)
17
18
end
Original file line number Diff line number Diff line change 39
39
40
40
# Standardised tests.
41
41
TestUtils. test_interface (k, Float64)
42
+ test_params (k, (Float64[],))
42
43
test_ADs (Matern32Kernel)
43
44
end
44
45
@testset " Matern52Kernel" begin
58
59
59
60
# Standardised tests.
60
61
TestUtils. test_interface (k, Float64)
62
+ test_params (k, (Float64[],))
61
63
test_ADs (Matern52Kernel)
62
64
end
63
65
@testset " Coherence Materns" begin
Original file line number Diff line number Diff line change 7
7
8
8
# Standardised tests.
9
9
TestUtils. test_interface (k, Float64)
10
+ test_params (k, (Float64[],))
10
11
test_ADs (NeuralNetworkKernel)
11
12
end
Original file line number Diff line number Diff line change 33
33
TestUtils. test_interface (k, RowVecs{Float64}; dim_in= 2 )
34
34
test_ADs (() -> PiecewisePolynomialKernel {degree} (; dim= D))
35
35
36
- test_params (k, ())
36
+ test_params (k, (Float64[], ))
37
37
end
You can’t perform that action at this time.
0 commit comments