Skip to content

Commit c1b0cee

Browse files
committed
use model = instead of @register
1 parent e3d97e7 commit c1b0cee

8 files changed

+8
-8
lines changed

models/dppl_gauss_unknown.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,4 +9,4 @@ y = randn() .+ s * randn(n)
99
y ~ filldist(Normal(m, s), N)
1010
end
1111

12-
@register dppl_gauss_unknown(y)
12+
model = dppl_gauss_unknown(y)

models/dppl_hier_poisson.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,4 +24,4 @@ lazyarray(f, x) = LazyArray(Base.broadcasted(f, x))
2424
y ~ arraydist(lazyarray(LogPoisson, alpha))
2525
end
2626

27-
@register dppl_hier_poisson(y, x, idx, ns)
27+
model = dppl_hier_poisson(y, x, idx, ns)

models/dppl_high_dim_gauss.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,4 +2,4 @@
22
m ~ filldist(Normal(0, 1), D)
33
end
44

5-
@register dppl_high_dim_gauss(10_000)
5+
model = dppl_high_dim_gauss(10_000)

models/dppl_hmm_semisup.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,4 +56,4 @@ end
5656
DynamicPPL.@addlogprob! logsumexp(gamma)
5757
end
5858

59-
@register dppl_hmm_semisup(K, T, T_unsup, w, z, u, alpha, beta)
59+
model = dppl_hmm_semisup(K, T, T_unsup, w, z, u, alpha, beta)

models/dppl_lda.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,4 +31,4 @@ end
3131
DynamicPPL.@addlogprob! sum(log_phi_dot_theta[CartesianIndex.(w, doc)])
3232
end
3333

34-
@register dppl_lda(k, m, w_lda, doc_lda, alpha, beta)
34+
model = dppl_lda(k, m, w_lda, doc_lda, alpha, beta)

models/dppl_logistic_regression.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,4 +18,4 @@ lazyarray(f, x) = LazyArray(Base.broadcasted(f, x))
1818
y ~ arraydist(lazyarray(x -> Bernoulli(safelogistic(x)), Xt * w))
1919
end
2020

21-
@register dppl_logistic_regression(X', y)
21+
model = dppl_logistic_regression(X', y)

models/dppl_naive_bayes.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,4 +24,4 @@ labels = labels[1:N]
2424
image_vec ~ MvNormal(vec(m[labels, :]), I)
2525
end
2626

27-
@register dppl_naive_bayes(image_vec, labels, C, D)
27+
model = dppl_naive_bayes(image_vec, labels, C, D)

models/dppl_sto_volatility.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,4 +20,4 @@ y = map(to_num, data[1:500, 2])
2020
end
2121
end
2222

23-
@register dppl_sto_volatility(y)
23+
model = dppl_sto_volatility(y)

0 commit comments

Comments
 (0)