$30 off During Our Annual Pro Sale. View Details »

ヅ大xはこみら 対バンLT <たつお>

t4t5u0
December 24, 2019

ヅ大xはこみら 対バンLT <たつお>

LaTeXを触ってみた話

t4t5u0

December 24, 2019
Tweet

More Decks by t4t5u0

Other Decks in Technology

Transcript

  1. L A TEX Λ৮ͬͯΈͨ࿩ ρେ x ະདྷେ ରόϯ LT ձ

    ͓ͨͭ ެཱ͸ͩͯ͜ະདྷେֶ December 24, 2019 1 / 11
  2. ໨࣍ 1 ໨࣍ 2 ࣗݾ঺հ 3 L A TEX ͱ͸

    4 L A TEX ͷ͍͍ͱ͜Ζ 5 L A TEX ͷͭΒ͍ͱ͜Ζ 6 ࣮ྫ 7 ऴΘΓʹ 2 / 11
  3. ࣗݾ঺հ ͓ͨͭ • ެཱ͸ͩͯ͜ະདྷେֶ ֶ෦ 1 ೥ • Twitter:@i4mwh4ti4m •

    ࠷ۙϋϚ͍ͬͯΔ΋ͷɿ๜ϩοΫ ▶ the shes gone ▶ ϚΧϩχ͑Μͽͭ ▶ ͱ͚ͨిٿ • ϝΠϯݴޠɿPython • ਂ૚ֶशɺ੠࣭ม׵Λษڧத 3 / 11
  4. L ATEX ͱ͸ L A TEX ͱ͸ • L A

    TEX2ε ͕ݱߦͷόʔδϣϯ • L A TEX ͱ͸ TEX Λجʹͨ͠จॻॲཧγεςϜͰ͋Δɽ • TEX ͱ͸ϑϦʔ૊൛γεςϜͰɺݴޠͰ͋Δɽ 4 / 11
  5. L ATEX ͷ͍͍ͱ͜Ζ L A TEX ͷ͍͍ͱ͜Ζ • ਺͕͖ࣜΕ͍ʹॻ͚Δ •

    ϕΫλʔը૾ׂ͕ͱ؆୯ʹॻ͚Δ • ࿦จ΍ॻ੶ͬΆ͍ࢿྉ͕࡞ΕΔ (ͦΕ͸ͦ͏) • ؒҧͬͯΔ৔ॴ͸ͪΌΜͱڭ͑ͯ͘ΕΔ 5 / 11
  6. L ATEX ͷͭΒ͍ͱ͜Ζ L A TEX ͷͭΒ͍ͱ͜Ζ • ϚʔΫΞοϓʹͯ͠͸ίετ͕ॏ͍ •

    ඇΤϯδχΞ͕ͱΓ͋͑ͣಈ͘΋ͷΛϊ΢ϋ΢ͱͯ͠ڞ༗ • ݹ͍ࢿྉ͕ଟ͍ • ؀ڥߏங͕೉͍͠Β͍͠ 6 / 11
  7. ࣮ྫ ਺ࣜ ͍͍ײ͡ʹ਺ࣜΛॻ͘͜ͱ͕Ͱ͖Δ i.e. ΧϧόοΫɾϥΠϒϥɾσΟόʔδΣϯε DKL(p||q) = − ∫ p(x)

    ln q(x)dx − ( − ∫ p(x) ln p(x)dx ) = − ∫ p(x) ln { q(x) p(x) } dx = ∫ p(x) ln { p(x) q(x) } dx 7 / 11
  8. ࣮ྫ த਎ \section{࣮ྫ} \begin{frame}{਺ࣜ} ͍͍ײ͡ʹ਺ࣜΛॻ͘͜ͱ͕Ͱ͖Δ\\ \textrm{i.e.} ΧϧόοΫɾϥΠϒϥɾσΟόʔδΣϯε \begin{align*} D_{\textrm{KL}}(p||q)&=-\int p(\textbf{x})\ln

    q(\textbf{x})d\textbf{x} -\left(-\int p(\textbf{x})\ln p(\textbf{x})d\textbf{x}\right)\\ &=-\int p(\textbf{x})\ln\left\{\frac{q(\textbf{x})}{p(\textbf{x})}\right\} d\textbf{x}\\ &=\int p(\textbf{x})\ln\left\{\frac{p(\textbf{x})}{q(\textbf{x})}\right\} d\textbf{x} \end{align*} \end{frame} 8 / 11
  9. ࣮ྫ άϥϑ ਺ࣜͱಉ༷ʹάϥϑΛॻ͘͜ͱ΋Ͱ͖Δ x y O ς(x) tanh x ReLU

    Figure: ओͳ׆ੑԽؔ਺ 9 / 11
  10. ࣮ྫ த਎ \begin{frame}{άϥϑ} ਺ࣜͱಉ༷ʹάϥϑΛॻ͘͜ͱ΋Ͱ͖Δ \begin{figure}[htbp]\centering \begin{tikzpicture} \draw[->, >=stealth, very thick]

    (-5, 0) -- (5, 0) node[above]{$x$}; \draw[->, >=stealth, very thick] (0, -1.5) -- (0, 2.5) node[right]{$y$}; \draw (0,0)node[below right]{$O$}; \draw[samples=100,domain=-5:5,thick,red] plot(\x, {1/(1+exp(-(\x)))}) node[below]{$\varsigma(x)$}; \draw[samples=100,domain=-5:5,thick,green] plot(\x,{(exp(\x)-exp(-\x))/(exp(\x)+exp(-\x))})node[above]{$\tanh x$}; \draw[samples=100,domain=-5:2.5,thick,blue] plot(\x, {\x>0 ? \x : 0}) node[right]{$\textrm{ReLU}$}; \end{tikzpicture} \caption{ओͳ׆ੑԽؔ਺}\end{figure}\end{frame} 10 / 11
  11. ऴΘΓʹ ऴΘΓʹ • Cloud LaTeX / Over leaf ͱ͔Λ࢖͏ͱָ •

    ׳ΕΔͱ͍͍ײ͡ͷࢿྉ͕࡞ΕΔ • L A TEX ͕ॻ͚Δͱ͔͍͍ͬ͜ 11 / 11