]> code.communitydata.science - ml_measurement_error_public.git/blob - charts/example_2_dag.tex
pass through optimization parameters
[ml_measurement_error_public.git] / charts / example_2_dag.tex
1 \documentclass[12pt]{standalone}
2
3 \usepackage{ucs}
4 \usepackage[utf8x]{inputenc}
5
6 \usepackage[T1]{fontenc}
7 \usepackage{textcomp}
8 \renewcommand{\rmdefault}{ugm}
9 \renewcommand{\sfdefault}{phv}
10 \usepackage[garamond]{mathdesign}
11 \usepackage{tikz}
12 \usetikzlibrary{positioning, shapes, arrows, shadows}
13
14 \begin{document}
15
16 \tikzset{
17   observed/.style={circle, draw},
18   partly observed/.style 2 args={draw, fill=#2, path picture={
19       \fill[#1, sharp corners] (path picture bounding box.south west) -|
20       (path picture bounding box.north east) -- cycle;},
21      circle},
22     unobserved/.style={draw, circle, fill=gray!40},
23     residual/.style={draw, rectangle}
24 }
25
26 \tikzset{>=latex}
27 \begin{tikzpicture}
28   \node[observed] (y) {$Y$};
29   \node[unobserved, above=of y] (x) {$X$};
30   \node[observed, left=of x] (w) {$W$};
31
32   \node[observed,right=of x] (z) {$Z$};
33
34   \draw[->] (z) to (y);
35   \draw[->] (z) -- (x);
36   \draw[->] (x) -- (y);
37   \draw[->] (x) -- (w);
38
39   \draw[->] (x) to (y);
40
41   \draw[->] (y) -- (w);
42   \draw[->] (y) -- (w);
43
44
45 \end{tikzpicture}
46 \end{document}
47

Community Data Science Collective || Want to submit a patch?