Download assets/figure1_source/overview.tex from ChatterjeeLab/DooABLe: direct link, hf CLI and curl.
- Browser
- Download file 3.65 kB
-
https://huggingface.co/ChatterjeeLab/DooABLe/resolve/main/assets/figure1_source/overview.tex
- Command line
-
hf download hf://ChatterjeeLab/DooABLe/assets/figure1_source/overview.tex
-
curl -L -o overview.tex https://huggingface.co/ChatterjeeLab/DooABLe/resolve/main/assets/figure1_source/overview.tex
3.65 kB
| \documentclass[tikz,border=4pt]{standalone} | |
| \usepackage[no-math]{fontspec} | |
| \setmainfont{Ubuntu}[Path=fonts/,UprightFont=Ubuntu-Regular.ttf,BoldFont=Ubuntu-Bold.ttf] | |
| \usepackage{amsmath,amssymb,graphicx} | |
| \usetikzlibrary{arrows.meta,calc,decorations.pathreplacing} | |
| \definecolor{accent}{HTML}{65AEDB} | |
| \definecolor{darkaccent}{HTML}{326889} | |
| \definecolor{pale}{HTML}{EAF5FC} | |
| \definecolor{ink}{HTML}{243644} | |
| \definecolor{gray}{HTML}{91A3AF} | |
| \tikzset{every node/.style={font=\fontsize{9}{11}\selectfont,text=ink},arr/.style={-{Latex[length=1.8mm]},line width=.85pt,draw=gray},ga/.style={-{Latex[length=2.5mm]},line width=1.6pt,draw=accent},state/.style={circle,draw=accent,fill=white,minimum size=5mm,inner sep=1pt,line width=.8pt}} | |
| \newcommand{\mol}[3]{\begin{scope}[shift={(#1,#2)},scale=#3] | |
| \draw[ink,line width=.8pt] (30:.3)--(90:.3)--(150:.3)--(210:.3)--(270:.3)--(330:.3)--cycle; | |
| \draw[ink,line width=.5pt] (90:.22)--(150:.22) (210:.22)--(270:.22) (330:.22)--(30:.22); | |
| \draw[ink,line width=.8pt] (30:.3)--(.5,.29)--(.7,.17); | |
| \end{scope}} | |
| \begin{document} | |
| \begin{tikzpicture}[x=1cm,y=1cm] | |
| \path[use as bounding box] (0,0) rectangle (17.6,6.65); | |
| \node[anchor=west,font=\bfseries,text=darkaccent] at (.25,6.25) {Parents, admissible actions, budget $B$, outcome weights $r_z$, route temperature $\tau$}; | |
| \path[fill=accent!10] (.25,3.05) .. controls (-.05,5.8) and (2.45,5.9) .. (2.7,4.4) .. controls (3.1,2.7) and (.2,2.05) .. (.25,3.05); | |
| \node at (1.4,5.0) {\includegraphics[width=2.3cm]{parent_acid.pdf}}; | |
| \node at (1.4,3.92) {\includegraphics[width=2.3cm]{parent_amine.pdf}}; | |
| \node at (1.4,2.94) {\includegraphics[width=2.3cm]{parent_aminoacid.pdf}}; | |
| \node at (1.45,2.42) {$x_0\in\mathcal C$}; | |
| \node[state] (u1) at (3.6,4.85) {}; | |
| \node[state] (u2) at (3.6,3.28) {}; | |
| \node[state] (v1) at (5.16,5.03) {}; | |
| \node[state] (v2) at (5.16,4.02) {}; | |
| \node[state] (v3) at (5.16,2.93) {}; | |
| \node[state,fill=pale] (t1) at (6.9,4.73) {$y_1$}; | |
| \node[state,fill=pale] (t2) at (6.9,3.15) {$y_2$}; | |
| \draw[arr] (2.27,4.8)--(u1);\draw[arr] (2.25,3.48)--(u2); | |
| \draw[arr] (u1)--(v1);\draw[arr] (u1)--(v2);\draw[arr] (u2)--(v2);\draw[arr] (u2)--(v3); | |
| \draw[arr] (v1)--(t1);\draw[arr] (v2)--(t1);\draw[arr] (v3)--(t2); | |
| \draw[ga] (u2)--(v2)--(t1); | |
| \node at (5.1,2.42) {$\sum_i b(a_i)\leq B$}; | |
| \node at (10.1,5.42) {$v(s)=\log\!\sum_{e:u\to s}e^{v(u)-c(e)/\tau}$}; | |
| \draw[ga] (11.8,4.51) .. controls (10.2,4.95) and (8.8,4.86) .. (7.5,4.44); | |
| \node at (10.02,4.0) {$q(e\mid s)\propto e^{v(u)-c(e)/\tau}$}; | |
| \draw[arr] (7.5,3.31) .. controls (8.83,2.9) and (10.35,2.89) .. (11.8,3.28); | |
| \node at (10.15,2.52) {$\log Z+\log P_\theta=\log r_z+\log Q_\phi$}; | |
| \path[fill=accent!10] (13.24,4.14) .. controls (13.05,5.5) and (16.72,5.75) .. (17.05,4.63) .. controls (17.48,3.15) and (13.51,3.22) .. (13.24,4.14); | |
| \node at (15.15,4.68) {\includegraphics[width=4.2cm]{product.pdf}}; | |
| \node at (15.2,3.65) {Sampled $(y,\xi)\sim P_\theta$}; | |
| \draw[ga] (12.3,3.24) .. controls (12.75,3.29) and (13.05,3.67) .. (13.32,3.84); | |
| \draw[accent,line width=1pt] (14.0,2.89)--(16.6,2.89); | |
| \foreach \x in {14.15,15.28,16.41}{\fill[accent] (\x,2.89) circle (.065);} | |
| \node at (15.28,2.42) {$x_0\xrightarrow{a_1}x_1\xrightarrow{a_2}y$}; | |
| \path[fill=pale,rounded corners=3pt] (.18,.02) rectangle (17.38,2.0); | |
| \node[anchor=west,font=\bfseries,text=darkaccent] at (.51,1.57) {DooABLe}; | |
| \node[font=\fontsize{11}{13}\selectfont] at (9.7,1.0) | |
| {$\displaystyle P^*(\xi)=\underbrace{\frac{r_z(y)}{\sum_{y'\in\mathcal Y_B}r_z(y')}}_{\text{outcome probability}}\ \underbrace{\frac{e^{-C(\xi)/\tau}}{\sum_{\xi':\,y(\xi')=y}e^{-C(\xi')/\tau}}}_{\text{conditional route probability}}$}; | |
| \end{tikzpicture} | |
| \end{document} | |