Skip to content

Commit 39742a7

Browse files
committed
reduced sample count
1 parent 8fe59f8 commit 39742a7

File tree

3 files changed

+40
-13
lines changed

3 files changed

+40
-13
lines changed

examples/stochastic_volatility.ipynb

Lines changed: 5 additions & 5 deletions
Large diffs are not rendered by default.

examples/stochastic_volatility.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,7 @@ def hessian(point, nusd):
9494

9595
# <markdowncell>
9696

97-
# We do a short initial run to get near the right area, then start again using a new Hessian at the new starting point to get faster sampling due to better scaling.
97+
# We do a short initial run to get near the right area, then start again using a new Hessian at the new starting point to get faster sampling due to better scaling. We do a short run since this is an interactive example.
9898

9999
# <codecell>
100100

@@ -105,13 +105,13 @@ def hessian(point, nusd):
105105
# Start next run at the last sampled position.
106106
start2 = trace.point(-1)
107107
step = HamiltonianMC(model.vars, hessian(start2, 6), path_length = 4.)
108-
trace = sample(8000, step, trace=trace)
108+
trace = sample(2000, step, trace=trace)
109109

110110
# <codecell>
111111

112112
#figsize(12,6)
113113
title(str(s))
114-
plot(trace[s][::10].T,'b', alpha=.01);
114+
plot(trace[s][::10].T,'b', alpha=.03);
115115
xlabel('time')
116116
ylabel('volatility')
117117

readme.md

Lines changed: 32 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2,12 +2,39 @@
22

33
[![Build Status](https://travis-ci.org/pymc-devs/pymc.png)](https://travis-ci.org/pymc-devs/pymc)
44

5-
PyMC is a python module that implements Bayesian statistical models and fitting algorithms, including Markov chain Monte Carlo. Its flexibility and extensibility make it applicable to a large suite of problems.
5+
PyMC is a python module for Bayesian statistical modeling and model fitting which focuses on advanced Markov chain Monte Carlo fitting algorithms. Its flexibility and extensibility make it applicable to a large suite of problems.
6+
7+
## Features
8+
9+
* Powerful sampling algorithms such as [Hamiltonian Monte Carlo](http://en.wikipedia.org/wiki/Hybrid_Monte_Carlo)
10+
* Intuitive model specification syntax, for example, `x ~ N(0,1)` translates to `x = Normal(0,1)`
11+
* All [Theano](http://deeplearning.net/software/theano/) features
12+
* Numpy indexing and broadcasting
13+
* Linear algebra operators
14+
* Computation optimization and dynamic C compilation
15+
* Simple extensibility
616

717
## Guided Examples
8-
* [Simple model](http://nbviewer.ipython.org/urls/raw.github.com/pymc-devs/pymc/pymc3/examples/tutorial.ipynb)
18+
* [Tutorial model](http://nbviewer.ipython.org/urls/raw.github.com/pymc-devs/pymc/pymc3/examples/tutorial.ipynb)
919
* More advanced [Stochastic Volatility model](http://nbviewer.ipython.org/urls/raw.github.com/pymc-devs/pymc/pymc3/examples/stochastic_volatility.ipynb)
1020

11-
# Features
12-
* Advanced sampling algorithms like Hamiltonian Monte Carlo
13-
* [Theano](http://deeplearning.net/software/theano/) based optimization and dynamic C code generation.
21+
## Installation
22+
23+
```
24+
git clone -b pymc3 [email protected]:pymc-devs/pymc.git
25+
python pymc/setup.py install
26+
```
27+
28+
### Optional
29+
30+
[`scikits.sparse`](https://github.com/njsmith/scikits-sparse) enables sparse scaling matrices which are useful for large problems.
31+
32+
Ubuntu:
33+
34+
```
35+
sudo apt-get install libsuitesparse-dev
36+
pip install git+https://github.com/njsmith/scikits-sparse.git
37+
```
38+
39+
## License
40+
[Apache License, Version 2.0](https://github.com/pymc-devs/pymc/blob/pymc3/LICENSE)

0 commit comments

Comments
 (0)