Skip to content

Commit

Permalink
fix blending tests
Browse files Browse the repository at this point in the history
  • Loading branch information
itsdfish committed Sep 17, 2021
1 parent 3a09bfd commit 52447cf
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions test/Memory_Tests.jl
Original file line number Diff line number Diff line change
Expand Up @@ -476,13 +476,13 @@ using SafeTestsets
@safetestset "blend_chunks" begin
using ACTRModels, Test, Random
Random.seed!(598)
chunks = [Chunk(;a=1, b=0,c=3), Chunk(;a=1, b=3,c=1)]
chunks = [Chunk(;a=1, b=0), Chunk(;a=1, b=3)]
parms = (mmp = true, δ=1.0, noise=true, s=.2)
declarative = Declarative(;memory=chunks)
actr = ACTR(;declarative, parms...)

request = (a=2,)
blended_slots = [:b,:c]
blended_slots = :b
n_sim = 10_000
mean_value1 = map(_->blend_chunks(actr, blended_slots; request...), 1:n_sim) |> mean
@test mean_value1 1.5 atol = .01
Expand Down

0 comments on commit 52447cf

Please sign in to comment.