Skip to content

Commit

Permalink
rename
Browse files Browse the repository at this point in the history
  • Loading branch information
st-- committed Apr 7, 2022
1 parent 1b09168 commit 37aeb0a
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions test/mean_function.jl
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,13 @@
rng = MersenneTwister(123456)
N, D = 5, 3
x1 = randn(rng, N)
xD = ColVecs(randn(rng, D, N))
xD′ = RowVecs(randn(rng, N, D))
xD_colvecs = ColVecs(randn(rng, D, N))
xD_rowvecs = RowVecs(randn(rng, N, D))

@testset "ZeroMean" begin
m = ZeroMean{Float64}()

for x in [x1, xD, xD′]
for x in [x1, xD_colvecs, xD_rowvecs]
@test AbstractGPs._map_meanfunction(m, x) == zeros(N)
#differentiable_mean_function_tests(m, randn(rng, N), x)

Expand All @@ -28,7 +28,7 @@
c = randn(rng)
m = ConstMean(c)

for x in [x1, xD, xD′]
for x in [x1, xD_colvecs, xD_rowvecs]
@test AbstractGPs._map_meanfunction(m, x) == fill(c, N)
#differentiable_mean_function_tests(m, randn(rng, N), x)
end
Expand All @@ -38,7 +38,7 @@
foo_mean = x -> sum(abs2, x)
m = CustomMean(foo_mean)

for x in [x1, xD, xD′]
for x in [x1, xD_colvecs, xD_rowvecs]
@test AbstractGPs._map_meanfunction(m, x) == map(foo_mean, x)
#differentiable_mean_function_tests(m, randn(rng, N), x)
end
Expand Down

0 comments on commit 37aeb0a

Please sign in to comment.