class_layer_1_1_activation_layer.tex 8.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106
  1. \hypertarget{class_layer_1_1_activation_layer}{}\doxysection{Layer\+::Activation\+Layer\texorpdfstring{$<$}{<} A \texorpdfstring{$>$}{>} Class Template Reference}
  2. \label{class_layer_1_1_activation_layer}\index{Layer::ActivationLayer$<$ A $>$@{Layer::ActivationLayer$<$ A $>$}}
  3. {\ttfamily \#include $<$activation.\+hpp$>$}
  4. Inheritance diagram for Layer\+::Activation\+Layer\texorpdfstring{$<$}{<} A \texorpdfstring{$>$}{>}\+:
  5. \nopagebreak
  6. \begin{figure}[H]
  7. \begin{center}
  8. \leavevmode
  9. \includegraphics[width=235pt]{class_layer_1_1_activation_layer__inherit__graph}
  10. \end{center}
  11. \end{figure}
  12. \doxysubsection*{Public Member Functions}
  13. \begin{DoxyCompactItemize}
  14. \item
  15. \mbox{\hyperlink{class_layer_1_1_activation_layer_a6999fec429ab7f6eafc9ebd5a42a8f76}{Activation\+Layer}} (const size\+\_\+t)
  16. \item
  17. \mbox{\hyperlink{class_layer_1_1_activation_layer_aa7059282e1e7eeb17b1e36e594e1f2ac}{$\sim$\+Activation\+Layer}} ()
  18. \item
  19. \mbox{\hyperlink{vector_8hpp_ab9855a300a7759f4c0f85067d44e4c38}{Vector}} \mbox{\hyperlink{class_layer_1_1_activation_layer_a9bc3eb83733b4ee5a4a3c5c50e794478}{feed\+\_\+forward}} (\mbox{\hyperlink{vector_8hpp_ab9855a300a7759f4c0f85067d44e4c38}{Vector}} \mbox{\hyperlink{class_layer_1_1_layer_af2ebcf019bc0e4b97f41fc9205706665}{x}}) override
  20. \item
  21. void \mbox{\hyperlink{class_layer_1_1_activation_layer_a230ad43fde65528cc36021e097f111a4}{init\+\_\+nabla}} () override
  22. \item
  23. \mbox{\hyperlink{vector_8hpp_ab9855a300a7759f4c0f85067d44e4c38}{Vector}} \mbox{\hyperlink{class_layer_1_1_activation_layer_aa946acde267d94523d12465ca8976ab9}{back\+\_\+propagation}} (\mbox{\hyperlink{vector_8hpp_ab9855a300a7759f4c0f85067d44e4c38}{Vector}} e) override
  24. \item
  25. void \mbox{\hyperlink{class_layer_1_1_activation_layer_afbc9f12d792008bbaf6d6c2d0177ebf1}{update}} (\mbox{\hyperlink{vector_8hpp_a4b04262b81aa7d31eb5d2f607e2a35de}{Real}} eta) override
  26. \end{DoxyCompactItemize}
  27. \doxysubsection*{Additional Inherited Members}
  28. \doxysubsection{Detailed Description}
  29. \subsubsection*{template$<$\mbox{\hyperlink{namespace_layer_a154fb338e15b0326915fb7f9c383ef9f}{Activation\+Map}} A$>$\newline
  30. class Layer\+::\+Activation\+Layer$<$ A $>$}
  31. Class for activation layer. The Output vector is obtained by applying activation map to each entry of the input vector.
  32. \doxysubsection{Constructor \& Destructor Documentation}
  33. \mbox{\Hypertarget{class_layer_1_1_activation_layer_a6999fec429ab7f6eafc9ebd5a42a8f76}\label{class_layer_1_1_activation_layer_a6999fec429ab7f6eafc9ebd5a42a8f76}}
  34. \index{Layer::ActivationLayer$<$ A $>$@{Layer::ActivationLayer$<$ A $>$}!ActivationLayer@{ActivationLayer}}
  35. \index{ActivationLayer@{ActivationLayer}!Layer::ActivationLayer$<$ A $>$@{Layer::ActivationLayer$<$ A $>$}}
  36. \doxysubsubsection{\texorpdfstring{ActivationLayer()}{ActivationLayer()}}
  37. {\footnotesize\ttfamily template$<$\mbox{\hyperlink{namespace_layer_a154fb338e15b0326915fb7f9c383ef9f}{Activation\+Map}} A$>$ \\
  38. \mbox{\hyperlink{class_layer_1_1_activation_layer}{Layer\+::\+Activation\+Layer}}$<$ A $>$\+::\+Activation\+Layer (\begin{DoxyParamCaption}\item[{const}]{size\+\_\+t }\end{DoxyParamCaption})\hspace{0.3cm}{\ttfamily [inline]}}
  39. \mbox{\Hypertarget{class_layer_1_1_activation_layer_aa7059282e1e7eeb17b1e36e594e1f2ac}\label{class_layer_1_1_activation_layer_aa7059282e1e7eeb17b1e36e594e1f2ac}}
  40. \index{Layer::ActivationLayer$<$ A $>$@{Layer::ActivationLayer$<$ A $>$}!````~ActivationLayer@{$\sim$ActivationLayer}}
  41. \index{````~ActivationLayer@{$\sim$ActivationLayer}!Layer::ActivationLayer$<$ A $>$@{Layer::ActivationLayer$<$ A $>$}}
  42. \doxysubsubsection{\texorpdfstring{$\sim$ActivationLayer()}{~ActivationLayer()}}
  43. {\footnotesize\ttfamily template$<$\mbox{\hyperlink{namespace_layer_a154fb338e15b0326915fb7f9c383ef9f}{Activation\+Map}} A$>$ \\
  44. \mbox{\hyperlink{class_layer_1_1_activation_layer}{Layer\+::\+Activation\+Layer}}$<$ A $>$\+::$\sim$\mbox{\hyperlink{class_layer_1_1_activation_layer}{Activation\+Layer}} (\begin{DoxyParamCaption}{ }\end{DoxyParamCaption})\hspace{0.3cm}{\ttfamily [inline]}}
  45. \doxysubsection{Member Function Documentation}
  46. \mbox{\Hypertarget{class_layer_1_1_activation_layer_aa946acde267d94523d12465ca8976ab9}\label{class_layer_1_1_activation_layer_aa946acde267d94523d12465ca8976ab9}}
  47. \index{Layer::ActivationLayer$<$ A $>$@{Layer::ActivationLayer$<$ A $>$}!back\_propagation@{back\_propagation}}
  48. \index{back\_propagation@{back\_propagation}!Layer::ActivationLayer$<$ A $>$@{Layer::ActivationLayer$<$ A $>$}}
  49. \doxysubsubsection{\texorpdfstring{back\_propagation()}{back\_propagation()}}
  50. {\footnotesize\ttfamily template$<$\mbox{\hyperlink{namespace_layer_a154fb338e15b0326915fb7f9c383ef9f}{Activation\+Map}} A$>$ \\
  51. \mbox{\hyperlink{vector_8hpp_ab9855a300a7759f4c0f85067d44e4c38}{Vector}} \mbox{\hyperlink{class_layer_1_1_activation_layer}{Layer\+::\+Activation\+Layer}}$<$ A $>$\+::back\+\_\+propagation (\begin{DoxyParamCaption}\item[{\mbox{\hyperlink{vector_8hpp_ab9855a300a7759f4c0f85067d44e4c38}{Vector}}}]{e }\end{DoxyParamCaption})\hspace{0.3cm}{\ttfamily [inline]}, {\ttfamily [override]}, {\ttfamily [virtual]}}
  52. $d[i]:=\alpha\textnormal{\textquotesingle}(x[i])\times \e[i]$ where $\alpha$ is the activation map and \$e\$ the difference output vector.
  53. Implements \mbox{\hyperlink{class_layer_1_1_layer_ad9e2853fce56b014b1e9de5097e21dbd}{Layer\+::\+Layer}}.
  54. \mbox{\Hypertarget{class_layer_1_1_activation_layer_a9bc3eb83733b4ee5a4a3c5c50e794478}\label{class_layer_1_1_activation_layer_a9bc3eb83733b4ee5a4a3c5c50e794478}}
  55. \index{Layer::ActivationLayer$<$ A $>$@{Layer::ActivationLayer$<$ A $>$}!feed\_forward@{feed\_forward}}
  56. \index{feed\_forward@{feed\_forward}!Layer::ActivationLayer$<$ A $>$@{Layer::ActivationLayer$<$ A $>$}}
  57. \doxysubsubsection{\texorpdfstring{feed\_forward()}{feed\_forward()}}
  58. {\footnotesize\ttfamily template$<$\mbox{\hyperlink{namespace_layer_a154fb338e15b0326915fb7f9c383ef9f}{Activation\+Map}} A$>$ \\
  59. \mbox{\hyperlink{vector_8hpp_ab9855a300a7759f4c0f85067d44e4c38}{Vector}} \mbox{\hyperlink{class_layer_1_1_activation_layer}{Layer\+::\+Activation\+Layer}}$<$ A $>$\+::feed\+\_\+forward (\begin{DoxyParamCaption}\item[{\mbox{\hyperlink{vector_8hpp_ab9855a300a7759f4c0f85067d44e4c38}{Vector}}}]{x }\end{DoxyParamCaption})\hspace{0.3cm}{\ttfamily [inline]}, {\ttfamily [override]}, {\ttfamily [virtual]}}
  60. $y[i]:=\alpha(x[i])$ where $\alpha$ is the activation map.
  61. Implements \mbox{\hyperlink{class_layer_1_1_layer_aeb5b92a01bc4e867d347bff4767e919f}{Layer\+::\+Layer}}.
  62. \mbox{\Hypertarget{class_layer_1_1_activation_layer_a230ad43fde65528cc36021e097f111a4}\label{class_layer_1_1_activation_layer_a230ad43fde65528cc36021e097f111a4}}
  63. \index{Layer::ActivationLayer$<$ A $>$@{Layer::ActivationLayer$<$ A $>$}!init\_nabla@{init\_nabla}}
  64. \index{init\_nabla@{init\_nabla}!Layer::ActivationLayer$<$ A $>$@{Layer::ActivationLayer$<$ A $>$}}
  65. \doxysubsubsection{\texorpdfstring{init\_nabla()}{init\_nabla()}}
  66. {\footnotesize\ttfamily template$<$\mbox{\hyperlink{namespace_layer_a154fb338e15b0326915fb7f9c383ef9f}{Activation\+Map}} A$>$ \\
  67. void \mbox{\hyperlink{class_layer_1_1_activation_layer}{Layer\+::\+Activation\+Layer}}$<$ A $>$\+::init\+\_\+nabla (\begin{DoxyParamCaption}{ }\end{DoxyParamCaption})\hspace{0.3cm}{\ttfamily [inline]}, {\ttfamily [override]}, {\ttfamily [virtual]}}
  68. Null.
  69. Implements \mbox{\hyperlink{class_layer_1_1_layer_a87dbd5d1c1091769ba285084bd3513e7}{Layer\+::\+Layer}}.
  70. \mbox{\Hypertarget{class_layer_1_1_activation_layer_afbc9f12d792008bbaf6d6c2d0177ebf1}\label{class_layer_1_1_activation_layer_afbc9f12d792008bbaf6d6c2d0177ebf1}}
  71. \index{Layer::ActivationLayer$<$ A $>$@{Layer::ActivationLayer$<$ A $>$}!update@{update}}
  72. \index{update@{update}!Layer::ActivationLayer$<$ A $>$@{Layer::ActivationLayer$<$ A $>$}}
  73. \doxysubsubsection{\texorpdfstring{update()}{update()}}
  74. {\footnotesize\ttfamily template$<$\mbox{\hyperlink{namespace_layer_a154fb338e15b0326915fb7f9c383ef9f}{Activation\+Map}} A$>$ \\
  75. void \mbox{\hyperlink{class_layer_1_1_activation_layer}{Layer\+::\+Activation\+Layer}}$<$ A $>$\+::update (\begin{DoxyParamCaption}\item[{\mbox{\hyperlink{vector_8hpp_a4b04262b81aa7d31eb5d2f607e2a35de}{Real}}}]{eta }\end{DoxyParamCaption})\hspace{0.3cm}{\ttfamily [inline]}, {\ttfamily [override]}, {\ttfamily [virtual]}}
  76. Null.
  77. Implements \mbox{\hyperlink{class_layer_1_1_layer_a8f0801b946b94dfe856c57a632c9998f}{Layer\+::\+Layer}}.
  78. The documentation for this class was generated from the following file\+:\begin{DoxyCompactItemize}
  79. \item
  80. src/layers/\mbox{\hyperlink{activation_8hpp}{activation.\+hpp}}\end{DoxyCompactItemize}