Skip to content

Commit

Permalink
Fix a name changed in benchmark
Browse files Browse the repository at this point in the history
  • Loading branch information
xukai92 committed May 5, 2017
1 parent 15c6c8a commit a95c1de
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion benchmarks/benchmark.jl
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ CONFIG = Dict(
"gdemo-geweke",
"naive.bayes",
#"normal-loc",
"simple-normal-mixture",
"normal-mixture",
"simplegauss",
"gauss",
"bernoulli",
Expand Down
4 changes: 2 additions & 2 deletions benchmarks/normal-mixture-stan.run.jl
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@ using Turing
using Stan

include(Pkg.dir("Turing")*"/benchmarks/benchmarkhelper.jl")
include(Pkg.dir("Turing")*"/example-models/stan-models/simple-normal-mixture-stan.data.jl")
include(Pkg.dir("Turing")*"/example-models/stan-models/simple-normal-mixture-stan.model.jl")
include(Pkg.dir("Turing")*"/example-models/stan-models/normal-mixture-stan.data.jl")
include(Pkg.dir("Turing")*"/example-models/stan-models/normal-mixture-stan.model.jl")

stan_model_name = "normalmixture"
simplenormalmixturestan = Stanmodel(name=stan_model_name, model=simplenormalmixturemodel, nchains=1);
Expand Down
6 changes: 3 additions & 3 deletions benchmarks/normal-mixture.run.jl
Original file line number Diff line number Diff line change
Expand Up @@ -3,14 +3,14 @@ using Turing
using Stan

include(Pkg.dir("Turing")*"/benchmarks/benchmarkhelper.jl")
include(Pkg.dir("Turing")*"/example-models/stan-models/simple-normal-mixture-stan.data.jl")
include(Pkg.dir("Turing")*"/example-models/stan-models/simple-normal-mixture.model.jl")
include(Pkg.dir("Turing")*"/example-models/stan-models/normal-mixture-stan.data.jl")
include(Pkg.dir("Turing")*"/example-models/stan-models/normal-mixture.model.jl")

# NOTE: I only run a sub-set of the data as running the whole is quite slow
bench_res = tbenchmark("Gibbs(1000, HMC(1, 0.05, 1, :theta), PG(50, 1, :k), HMC(1, 0.2, 3, :mu))", "nmmodel", "y[1:100]")
logd = build_logd("Simple Gaussian Mixture Model", bench_res...)

include("simple-normal-mixture-stan.run.jl")
include("normal-mixture-stan.run.jl")
logd["stan"] = Dict("theta" => mean(nm_theta), "mu[1]" => mean(nm_mu_1), "mu[2]" =>mean(nm_mu_2))
logd["time_stan"] = nm_time

Expand Down

0 comments on commit a95c1de

Please sign in to comment.