aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorjeanpouget-abadie <jean.pougetabadie@gmail.com>2015-12-03 11:20:54 -0500
committerjeanpouget-abadie <jean.pougetabadie@gmail.com>2015-12-03 11:20:54 -0500
commit8941fb3c9fdb50ff1c21940d2e49ca5776c9f38b (patch)
treec03df9c6ea5e5ef8717a620d243647724ca5ec8d
parent89905cc1b6e932742abf3ecc148d99c2bdd1f77f (diff)
downloadcascades-8941fb3c9fdb50ff1c21940d2e49ca5776c9f38b.tar.gz
adding figures + graphical model
-rw-r--r--poster/Finale_poster/graphical.pdfbin0 -> 168270 bytes
-rw-r--r--poster/Finale_poster/graphical_model.py35
-rw-r--r--simulation/plots/fig.pngbin0 -> 43576 bytes
-rw-r--r--simulation/plots/vifig.pngbin0 -> 30816 bytes
4 files changed, 35 insertions, 0 deletions
diff --git a/poster/Finale_poster/graphical.pdf b/poster/Finale_poster/graphical.pdf
new file mode 100644
index 0000000..fcdbf8b
--- /dev/null
+++ b/poster/Finale_poster/graphical.pdf
Binary files differ
diff --git a/poster/Finale_poster/graphical_model.py b/poster/Finale_poster/graphical_model.py
new file mode 100644
index 0000000..60a825c
--- /dev/null
+++ b/poster/Finale_poster/graphical_model.py
@@ -0,0 +1,35 @@
+from matplotlib import rc
+rc('font', family='serif', size=10)
+rc('text', usetex=True)
+
+import daft
+
+first = 1
+second = 2.25
+third = 3.5
+
+pgm = daft.PGM([5, 4])
+pgm.add_node(daft.Node('source', r"$X_0$", 1, first, observed=True))
+pgm.add_node(daft.Node('first', r"$X_1$", 2, first, observed=True))
+pgm.add_node(daft.Node('second', r"$X_2$", 3, first, observed=True))
+pgm.add_node(daft.Node('last', r"$\cdots$", 4, first,
+ plot_params={"ec": "none"}))
+pgm.add_node(daft.Node('theta', r"$\Theta_{ij}$", 3, second))
+pgm.add_node(daft.Node('phi', r"$\phi$", 1, second, fixed=True))
+pgm.add_node(daft.Node('mu', r"$\mu$", 2.6, third))
+pgm.add_node(daft.Node('sigma', r"$\sigma$", 3.4, third))
+pgm.add_edge("source", "first")
+pgm.add_edge("first", "second")
+pgm.add_edge("second", "last")
+pgm.add_edge("phi", "source")
+pgm.add_edge("theta", "first")
+pgm.add_edge("theta", "second")
+pgm.add_edge("theta", "last")
+pgm.add_edge("mu", "theta")
+pgm.add_edge("sigma", "theta")
+pgm.add_plate(daft.Plate([.3, .3, 4.3, 1.2], label=r"$c=1, \cdots, C$"))
+pgm.add_plate(daft.Plate([2, 1.7, 2, 1.2], label=r"$N \times N$"))
+
+
+pgm.render()
+pgm.figure.savefig("graphical.pdf")
diff --git a/simulation/plots/fig.png b/simulation/plots/fig.png
new file mode 100644
index 0000000..4d594d4
--- /dev/null
+++ b/simulation/plots/fig.png
Binary files differ
diff --git a/simulation/plots/vifig.png b/simulation/plots/vifig.png
new file mode 100644
index 0000000..9036a12
--- /dev/null
+++ b/simulation/plots/vifig.png
Binary files differ