Skip to content

Commit 18d32a8

Browse files
committed
remove extra tilde
1 parent 887b82a commit 18d32a8

File tree

1 file changed

+12
-7
lines changed

1 file changed

+12
-7
lines changed

models/metabayesian_MH.jl

Lines changed: 12 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ Here we use a Metropolis-Hasting sampler implemented with Turing as the inversio
66

77
# Inner model function
88
@model function inner_model(observation, prior_μ = 0, prior_σ = 1)
9-
9+
1010
# The innter model's prior
1111
mean ~ Normal(prior_μ, prior_σ)
1212

@@ -15,16 +15,21 @@ Here we use a Metropolis-Hasting sampler implemented with Turing as the inversio
1515
end
1616

1717
# Outer model function
18-
@model function metabayesian_MH(observation, action, inner_sampler = MH(), inner_n_samples = 20)
19-
18+
@model function metabayesian_MH(
19+
observation,
20+
action,
21+
inner_sampler = MH(),
22+
inner_n_samples = 20,
23+
)
24+
2025
### Sample parameters for the inner inference and response ###
2126

2227
#The inner model's prior's sufficient statistics
2328
subj_prior_μ ~ Normal(0, 1)
24-
subj_prior_σ = 1.0
25-
29+
subj_prior_σ = 1.0
30+
2631
# #Inverse temperature for actions
27-
β ~ 1
32+
β = 1
2833

2934
### "Perceptual inference": running the inner model ###
3035

@@ -45,4 +50,4 @@ end
4550

4651
end
4752

48-
model = metabayesian_MH(0.0, 1.0)
53+
model = metabayesian_MH(0.0, 1.0)

0 commit comments

Comments
 (0)