Skip to content

Commit

Permalink
Update get-started.md
Browse files Browse the repository at this point in the history
  • Loading branch information
yebai authored Jan 22, 2019
1 parent 4d3c4c4 commit 26f6883
Showing 1 changed file with 3 additions and 8 deletions.
11 changes: 3 additions & 8 deletions docs/src/_docs/get-started.md
Original file line number Diff line number Diff line change
Expand Up @@ -44,17 +44,12 @@ using StatPlots
end

# Run sampler, collect results
c1 = sample(gdemo(1.5, 2), SMC(1000))
c2 = sample(gdemo(1.5, 2), PG(10,1000))
c3 = sample(gdemo(1.5, 2), HMC(1000, 0.1, 5))
c4 = sample(gdemo(1.5, 2), Gibbs(1000, PG(10, 2, :m), HMC(2, 0.1, 5, :s)))
c5 = sample(gdemo(1.5, 2), HMCDA(1000, 0.15, 0.65))
c6 = sample(gdemo(1.5, 2), NUTS(1000, 0.65))
chn = sample(gdemo(1.5, 2), HMC(1000, 0.1, 5))

# Summarise results (currently requires the master branch from MCMCChain)
describe(c3)
describe(chn)

# Plot and save results
p = plot(c3)
p = plot(chn)
savefig("gdemo-plot.png")
```

0 comments on commit 26f6883

Please sign in to comment.