Skip to content

Commit efffb6a

Browse files
committed
include and fix tests
1 parent 11fd95d commit efffb6a

File tree

3 files changed

+6
-5
lines changed

3 files changed

+6
-5
lines changed

test/runtests.jl

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,4 +4,5 @@ using Test
44
@testset "Trajectories.jl" begin
55
include("traces.jl")
66
include("trajectories.jl")
7+
include("samplers.jl")
78
end

test/samplers.jl

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ using Trajectories, Test
77
b=Bool[]
88
),
99
sampler = MetaSampler(policy = BatchSampler(3), critic = BatchSampler(5)),
10-
controler = InsertSampleControler(10, 0)
10+
controller = InsertSampleController(10, 0)
1111
)
1212

1313
append!(t; a=[1, 2, 3, 4], b=[false, true, false, true])
@@ -29,7 +29,7 @@ end
2929
b=Bool[]
3030
),
3131
sampler = MetaSampler(policy = BatchSampler(3), critic = MultiBatchSampler(BatchSampler(5), 2)),
32-
controler = InsertSampleControler(10, 0)
32+
controller = InsertSampleController(10, 0)
3333
)
3434

3535
append!(t; a=[1, 2, 3, 4], b=[false, true, false, true])
@@ -55,7 +55,7 @@ end
5555
b=Bool[]
5656
),
5757
sampler=BatchSampler(3),
58-
controler=AsyncInsertSampleRatioControler(ratio, threshould)
58+
controller=AsyncInsertSampleRatioController(ratio, threshould)
5959
)
6060

6161
n = 100

test/trajectories.jl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
b=Bool[]
66
),
77
sampler=BatchSampler(3),
8-
controler=InsertSampleRatioControler(0.25, 4)
8+
controller=InsertSampleRatioController(0.25, 4)
99
)
1010

1111
batches = []
@@ -69,7 +69,7 @@ end
6969
b=Bool[]
7070
),
7171
sampler=BatchSampler(3),
72-
controler=AsyncInsertSampleRatioControler(ratio, threshould)
72+
controller=AsyncInsertSampleRatioController(ratio, threshould)
7373
)
7474

7575
n = 100

0 commit comments

Comments
 (0)