Skip to content

Commit 04d8661

Browse files
committed
Remove old test infrastructure
1 parent dca86bc commit 04d8661

30 files changed

Lines changed: 25 additions & 700 deletions

test/Project.toml

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -10,15 +10,13 @@ Distances = "b4f34e82-e78d-54a5-968a-f98e89d6e8f7"
1010
Documenter = "e30172f5-a6a5-5a46-863b-614d45cd2de4"
1111
FiniteDifferences = "26cc04aa-876d-5657-8c51-4c34ba976000"
1212
ForwardDiff = "f6369f11-7733-5829-9624-2563aa707210"
13-
Functors = "d9f16b24-f501-4c13-a1f2-28368ffc5196"
1413
Kronecker = "2c470bb0-bcc8-11e8-3dad-c9649493f05e"
1514
LinearAlgebra = "37e2e46d-f89d-539d-b4ee-838fcccc9c8e"
1615
LogExpFunctions = "2ab3a3ac-af41-5b50-aa03-7779005ae688"
1716
PDMats = "90014a1f-27ba-587c-ab20-58faa44d9150"
1817
Random = "9a3f8284-a2c9-5f02-9a11-845980a1fd5c"
1918
ReverseDiff = "37e2e3b7-166d-5795-8a7a-e32c996b4267"
2019
SpecialFunctions = "276daf66-3868-5448-9aa4-cd146d93841b"
21-
StableRNGs = "860ef19b-820b-49d6-a774-d7a799459cd3"
2220
StaticArrays = "90137ffa-7385-5640-81b9-e52037218182"
2321
Statistics = "10745b16-79ce-11e8-11f9-7d13ad32a3b2"
2422
Test = "8dfed614-e22c-5e08-85e1-65c5234f0b40"
@@ -34,13 +32,11 @@ Distances = "0.10"
3432
Documenter = "0.25, 0.26, 0.27, 1"
3533
FiniteDifferences = "0.10.8, 0.11, 0.12"
3634
ForwardDiff = "0.10"
37-
Functors = "0.2, 0.3, 0.4, 0.5"
3835
Kronecker = "0.4, 0.5"
3936
LogExpFunctions = "0.2, 0.3"
4037
PDMats = "0.9, 0.10, 0.11"
4138
ReverseDiff = "1.2"
4239
SpecialFunctions = "0.10, 1, 2"
43-
StableRNGs = "1"
4440
StaticArrays = "1"
4541
Statistics = "1"
4642
Zygote = "0.6.38"

test/basekernels/constant.jl

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,6 @@
1010
TestUtils.test_interface(k, Float64)
1111
TestUtils.test_interface(k, Vector{String})
1212
test_ADs(ZeroKernel)
13-
test_interface_ad_perf(_ -> k, nothing, StableRNG(123456))
1413
end
1514
@testset "WhiteKernel" begin
1615
k = WhiteKernel()
@@ -25,7 +24,6 @@
2524
TestUtils.test_interface(k, Float64)
2625
TestUtils.test_interface(k, Vector{String})
2726
test_ADs(WhiteKernel)
28-
test_interface_ad_perf(_ -> k, nothing, StableRNG(123456))
2927
end
3028
@testset "ConstantKernel" begin
3129
c = 2.0
@@ -36,12 +34,9 @@
3634
@test metric(ConstantKernel()) == KernelFunctions.Delta()
3735
@test metric(ConstantKernel(; c=2.0)) == KernelFunctions.Delta()
3836
@test repr(k) == "Constant Kernel (c = $(c))"
39-
test_params(k, ([c],))
40-
4137
# Standardised tests.
4238
TestUtils.test_interface(k, Float64)
4339
TestUtils.test_interface(k, Vector{String})
4440
test_ADs(c -> ConstantKernel(; c=only(c)), [c])
45-
test_interface_ad_perf(c -> ConstantKernel(; c=c), c, StableRNG(123456))
4641
end
4742
end

test/basekernels/cosine.jl

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,5 +20,4 @@
2020
# Standardised tests.
2121
TestUtils.test_interface(k, Vector{Float64})
2222
test_ADs(CosineKernel)
23-
test_interface_ad_perf(_ -> CosineKernel(), nothing, StableRNG(123456))
2423
end

test/basekernels/exponential.jl

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -22,8 +22,6 @@
2222
# Standardised tests.
2323
TestUtils.test_interface(k)
2424
test_ADs(SEKernel)
25-
test_ADs_DIT(SEKernel)
26-
test_interface_ad_perf(_ -> SEKernel(), nothing, StableRNG(123456))
2725
end
2826
@testset "ExponentialKernel" begin
2927
k = ExponentialKernel()
@@ -42,8 +40,6 @@
4240
# Standardised tests.
4341
TestUtils.test_interface(k)
4442
test_ADs(ExponentialKernel)
45-
test_ADs_DIT(ExponentialKernel)
46-
test_interface_ad_perf(_ -> ExponentialKernel(), nothing, StableRNG(123456))
4743
end
4844
@testset "GammaExponentialKernel" begin
4945
γ = 1.0
@@ -61,8 +57,6 @@
6157
@test k2(v1, v2) k(v1, v2)
6258

6359
test_ADs-> GammaExponentialKernel(; gamma=only(γ)), [1 + 0.5 * rand()])
64-
test_ADs_DIT-> GammaExponentialKernel(; gamma=only(γ)), [1 + 0.5 * rand()])
65-
test_params(k, ([γ],))
6660
TestUtils.test_interface(GammaExponentialKernel(; γ=1.36))
6761

6862
#Coherence :

test/basekernels/exponentiated.jl

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,5 +14,4 @@
1414
# Standardised tests. This kernel appears to be fairly numerically unstable.
1515
TestUtils.test_interface(k; atol=1e-3)
1616
test_ADs(ExponentiatedKernel)
17-
test_interface_ad_perf(_ -> ExponentiatedKernel(), nothing, StableRNG(123456))
1817
end

test/basekernels/fbm.jl

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,6 @@
1414
test_interface(k; rtol=1e-5)
1515
@test repr(k) == "Fractional Brownian Motion Kernel (h = $(h))"
1616
test_ADs(FBMKernel; ADs=[:ReverseDiff])
17-
test_ADs_DIT(FBMKernel; ADs=[:ReverseDiff])
1817

1918
# Tests failing for ForwardDiff and [email protected].
2019
# Related to: https://github.com/FluxML/Zygote.jl/issues/1036
@@ -24,8 +23,4 @@
2423
Zygote.gradient((x, y) -> sum(f.(x, y)), zeros(1), fill(0.9, 1))[1][1]
2524
)
2625
end
27-
28-
test_params(k, ([h],))
29-
30-
test_interface_ad_perf(h -> FBMKernel(; h=h), h, StableRNG(123456))
3126
end

test/basekernels/gabor.jl

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -32,10 +32,4 @@
3232
),
3333
[ell, p],
3434
)
35-
test_interface_ad_perf((ell, p), StableRNG(123456)) do θ
36-
gaborkernel(;
37-
sqexponential_transform=ScaleTransform(θ[1]),
38-
cosine_transform=ScaleTransform(θ[2]),
39-
)
40-
end
4135
end

test/basekernels/matern.jl

Lines changed: 0 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -21,30 +21,6 @@
2121
# Standardised tests.
2222
TestUtils.test_interface(k, Float64)
2323
test_ADs(() -> MaternKernel(; nu=ν))
24-
test_ADs_DIT(() -> MaternKernel(; nu=ν))
25-
26-
test_params(k, ([ν],))
27-
28-
# The performance of this kernel varies quite a lot from method to method, so
29-
# requires us to specify whether performance tests pass or not.
30-
@testset "performance ($T)" for T in [
31-
Vector{Float64},
32-
ColVecs{Float64,Matrix{Float64}},
33-
RowVecs{Float64,Matrix{Float64}},
34-
]
35-
xs = example_inputs(StableRNG(123456), Vector{Float64})
36-
test_interface_ad_perf(
37-
ν -> MaternKernel(; nu=ν),
38-
ν,
39-
xs...;
40-
passes=(
41-
unary=(false, false, false),
42-
binary=(false, false, false),
43-
diag_unary=(true, false, false),
44-
diag_binary=(true, false, false),
45-
),
46-
)
47-
end
4824
end
4925
@testset "Matern32Kernel" begin
5026
k = Matern32Kernel()
@@ -61,8 +37,6 @@
6137
# Standardised tests.
6238
TestUtils.test_interface(k, Float64)
6339
test_ADs(Matern32Kernel)
64-
test_ADs_DIT(Matern32Kernel)
65-
test_interface_ad_perf(_ -> Matern32Kernel(), nothing, StableRNG(123456))
6640
end
6741
@testset "Matern52Kernel" begin
6842
k = Matern52Kernel()
@@ -82,7 +56,6 @@
8256
# Standardised tests.
8357
TestUtils.test_interface(k, Float64)
8458
test_ADs(Matern52Kernel)
85-
test_interface_ad_perf(_ -> Matern52Kernel(), nothing, StableRNG(123456))
8659
end
8760
@testset "Matern72Kernel" begin
8861
k = Matern72Kernel()
@@ -106,7 +79,6 @@
10679
# Standardised tests.
10780
TestUtils.test_interface(k, Float64)
10881
test_ADs(Matern72Kernel)
109-
test_interface_ad_perf(_ -> Matern72Kernel(), nothing, StableRNG(123456))
11082
end
11183
@testset "Coherence Materns" begin
11284
@test kappa(MaternKernel(; ν=0.5), x) kappa(ExponentialKernel(), x)

test/basekernels/nn.jl

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,5 +8,4 @@
88
# Standardised tests.
99
TestUtils.test_interface(k, Float64)
1010
test_ADs(NeuralNetworkKernel)
11-
test_interface_ad_perf(_ -> NeuralNetworkKernel(), nothing, StableRNG(123456))
1211
end

test/basekernels/periodic.jl

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,5 +17,4 @@
1717
TestUtils.test_interface(PeriodicKernel(; r=[0.8, 0.7]), RowVecs{Float64})
1818

1919
test_ADs(r -> PeriodicKernel(; r=exp.(r)), log.(r))
20-
test_params(k, (r,))
2120
end

0 commit comments

Comments
 (0)