Skip to content

Commit dfb27f4

Browse files
committed
Final tweaks to rename
1 parent a0331cd commit dfb27f4

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

test/chains.jl

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ using Test
6666
end
6767
end
6868

69-
@testset "ParamsWithStats from FastLDF" begin
69+
@testset "ParamsWithStats from LogDensityFunction" begin
7070
@testset "$(m.f)" for m in DynamicPPL.TestUtils.DEMO_MODELS
7171
unlinked_vi = VarInfo(m)
7272
@testset "$islinked" for islinked in (false, true)
@@ -77,9 +77,9 @@ end
7777
end
7878
params = [x for x in vi[:]]
7979

80-
# Get the ParamsWithStats using FastLDF
81-
fldf = DynamicPPL.Experimental.FastLDF(m, getlogjoint, vi)
82-
ps = ParamsWithStats(params, fldf)
80+
# Get the ParamsWithStats using LogDensityFunction
81+
ldf = DynamicPPL.LogDensityFunction(m, getlogjoint, vi)
82+
ps = ParamsWithStats(params, ldf)
8383

8484
# Check that length of parameters is as expected
8585
@test length(ps.params) == length(keys(vi))

test/fasteval.jl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -132,9 +132,9 @@ end
132132
@testset for model in
133133
(f(), submodel_inner() | (; s=0.0), submodel_outer(submodel_inner()))
134134
vi = VarInfo(model)
135-
fldf = DynamicPPL.LogDensityFunction(model, DynamicPPL.getlogjoint_internal, vi)
135+
ldf = DynamicPPL.LogDensityFunction(model, DynamicPPL.getlogjoint_internal, vi)
136136
x = vi[:]
137-
bench = median(@be LogDensityProblems.logdensity(fldf, x))
137+
bench = median(@be LogDensityProblems.logdensity(ldf, x))
138138
@test iszero(bench.allocs)
139139
end
140140
end

0 commit comments

Comments
 (0)