\section{He\+Initialization Class Reference}
\label{classmlpack_1_1ann_1_1HeInitialization}\index{He\+Initialization@{He\+Initialization}}


This class is used to initialize weight matrix with the He initialization rule given by He et.  


\subsection*{Public Member Functions}
\begin{DoxyCompactItemize}
\item 
\textbf{ He\+Initialization} ()
\begin{DoxyCompactList}\small\item\em Initialize the \doxyref{He\+Initialization}{p.}{classmlpack_1_1ann_1_1HeInitialization} object. \end{DoxyCompactList}\item 
{\footnotesize template$<$typename eT $>$ }\\void \textbf{ Initialize} (arma\+::\+Mat$<$ eT $>$ \&W, const size\+\_\+t rows, const size\+\_\+t cols)
\begin{DoxyCompactList}\small\item\em Initialize the elements of the weight matrix with the He initialization rule. \end{DoxyCompactList}\item 
{\footnotesize template$<$typename eT $>$ }\\void \textbf{ Initialize} (arma\+::\+Mat$<$ eT $>$ \&W)
\begin{DoxyCompactList}\small\item\em Initialize the elements of the weight matrix with the He initialization rule. \end{DoxyCompactList}\item 
{\footnotesize template$<$typename eT $>$ }\\void \textbf{ Initialize} (arma\+::\+Cube$<$ eT $>$ \&W, const size\+\_\+t rows, const size\+\_\+t cols, const size\+\_\+t slices)
\begin{DoxyCompactList}\small\item\em Initialize the elements of the specified weight 3rd order tensor with He initialization rule. \end{DoxyCompactList}\item 
{\footnotesize template$<$typename eT $>$ }\\void \textbf{ Initialize} (arma\+::\+Cube$<$ eT $>$ \&W)
\begin{DoxyCompactList}\small\item\em Initialize the elements of the specified weight 3rd order tensor with He initialization rule. \end{DoxyCompactList}\end{DoxyCompactItemize}


\subsection{Detailed Description}
This class is used to initialize weight matrix with the He initialization rule given by He et. 

al. for neural networks. The He initialization initializes weights of the neural network to better suit the rectified activation units.

For more information, the following paper can be referred to\+:


\begin{DoxyCode}
@article\{Delving2015,
  title   = \{Delving Deep into Rectifiers: Surpassing Human-Level Performance
             on ImageNet Classification\},
  author  = \{Kaiming He and Xiangyu Zhang and Shaoqing Ren and Jian Sun\},
  journal = \{2015 IEEE International Conference on Computer Vision (ICCV)\},
  year    = \{2015\},
  pages   = \{1026-1034\}
\}
\end{DoxyCode}
 

Definition at line 45 of file he\+\_\+init.\+hpp.



\subsection{Constructor \& Destructor Documentation}
\mbox{\label{classmlpack_1_1ann_1_1HeInitialization_a1e4da3c5a82b0c0aacc4f4505bcdccd0}} 
\index{mlpack\+::ann\+::\+He\+Initialization@{mlpack\+::ann\+::\+He\+Initialization}!He\+Initialization@{He\+Initialization}}
\index{He\+Initialization@{He\+Initialization}!mlpack\+::ann\+::\+He\+Initialization@{mlpack\+::ann\+::\+He\+Initialization}}
\subsubsection{He\+Initialization()}
{\footnotesize\ttfamily \textbf{ He\+Initialization} (\begin{DoxyParamCaption}{ }\end{DoxyParamCaption})\hspace{0.3cm}{\ttfamily [inline]}}



Initialize the \doxyref{He\+Initialization}{p.}{classmlpack_1_1ann_1_1HeInitialization} object. 



Definition at line 51 of file he\+\_\+init.\+hpp.



\subsection{Member Function Documentation}
\mbox{\label{classmlpack_1_1ann_1_1HeInitialization_a5cfe472251a41fffd45b170bb0d3c1bd}} 
\index{mlpack\+::ann\+::\+He\+Initialization@{mlpack\+::ann\+::\+He\+Initialization}!Initialize@{Initialize}}
\index{Initialize@{Initialize}!mlpack\+::ann\+::\+He\+Initialization@{mlpack\+::ann\+::\+He\+Initialization}}
\subsubsection{Initialize()\hspace{0.1cm}{\footnotesize\ttfamily [1/4]}}
{\footnotesize\ttfamily void Initialize (\begin{DoxyParamCaption}\item[{arma\+::\+Mat$<$ eT $>$ \&}]{W,  }\item[{const size\+\_\+t}]{rows,  }\item[{const size\+\_\+t}]{cols }\end{DoxyParamCaption})\hspace{0.3cm}{\ttfamily [inline]}}



Initialize the elements of the weight matrix with the He initialization rule. 


\begin{DoxyParams}{Parameters}
{\em W} & Weight matrix to initialize. \\
\hline
{\em rows} & Number of rows. \\
\hline
{\em cols} & Number of columns. \\
\hline
\end{DoxyParams}


Definition at line 65 of file he\+\_\+init.\+hpp.



Referenced by He\+Initialization\+::\+Initialize().

\mbox{\label{classmlpack_1_1ann_1_1HeInitialization_af2d770912321b8b9ca7b03ab98f735c0}} 
\index{mlpack\+::ann\+::\+He\+Initialization@{mlpack\+::ann\+::\+He\+Initialization}!Initialize@{Initialize}}
\index{Initialize@{Initialize}!mlpack\+::ann\+::\+He\+Initialization@{mlpack\+::ann\+::\+He\+Initialization}}
\subsubsection{Initialize()\hspace{0.1cm}{\footnotesize\ttfamily [2/4]}}
{\footnotesize\ttfamily void Initialize (\begin{DoxyParamCaption}\item[{arma\+::\+Mat$<$ eT $>$ \&}]{W }\end{DoxyParamCaption})\hspace{0.3cm}{\ttfamily [inline]}}



Initialize the elements of the weight matrix with the He initialization rule. 


\begin{DoxyParams}{Parameters}
{\em W} & Weight matrix to initialize. \\
\hline
\end{DoxyParams}


Definition at line 87 of file he\+\_\+init.\+hpp.



References Log\+::\+Fatal, and if().

\mbox{\label{classmlpack_1_1ann_1_1HeInitialization_a40a2b6466bdba0f6aab4eb92b6e65934}} 
\index{mlpack\+::ann\+::\+He\+Initialization@{mlpack\+::ann\+::\+He\+Initialization}!Initialize@{Initialize}}
\index{Initialize@{Initialize}!mlpack\+::ann\+::\+He\+Initialization@{mlpack\+::ann\+::\+He\+Initialization}}
\subsubsection{Initialize()\hspace{0.1cm}{\footnotesize\ttfamily [3/4]}}
{\footnotesize\ttfamily void Initialize (\begin{DoxyParamCaption}\item[{arma\+::\+Cube$<$ eT $>$ \&}]{W,  }\item[{const size\+\_\+t}]{rows,  }\item[{const size\+\_\+t}]{cols,  }\item[{const size\+\_\+t}]{slices }\end{DoxyParamCaption})\hspace{0.3cm}{\ttfamily [inline]}}



Initialize the elements of the specified weight 3rd order tensor with He initialization rule. 


\begin{DoxyParams}{Parameters}
{\em W} & Weight matrix to initialize. \\
\hline
{\em rows} & Number of rows. \\
\hline
{\em cols} & Number of columns. \\
\hline
{\em slices} & Number of slices. \\
\hline
\end{DoxyParams}


Definition at line 112 of file he\+\_\+init.\+hpp.



References He\+Initialization\+::\+Initialize().

\mbox{\label{classmlpack_1_1ann_1_1HeInitialization_ae2f3e6d570824a160b687ff9f734f83c}} 
\index{mlpack\+::ann\+::\+He\+Initialization@{mlpack\+::ann\+::\+He\+Initialization}!Initialize@{Initialize}}
\index{Initialize@{Initialize}!mlpack\+::ann\+::\+He\+Initialization@{mlpack\+::ann\+::\+He\+Initialization}}
\subsubsection{Initialize()\hspace{0.1cm}{\footnotesize\ttfamily [4/4]}}
{\footnotesize\ttfamily void Initialize (\begin{DoxyParamCaption}\item[{arma\+::\+Cube$<$ eT $>$ \&}]{W }\end{DoxyParamCaption})\hspace{0.3cm}{\ttfamily [inline]}}



Initialize the elements of the specified weight 3rd order tensor with He initialization rule. 


\begin{DoxyParams}{Parameters}
{\em W} & Weight matrix to initialize. \\
\hline
\end{DoxyParams}


Definition at line 131 of file he\+\_\+init.\+hpp.



References Log\+::\+Fatal, and He\+Initialization\+::\+Initialize().



The documentation for this class was generated from the following file\+:\begin{DoxyCompactItemize}
\item 
/var/www/mlpack.\+ratml.\+org/mlpack.\+org/\+\_\+src/mlpack-\/git/src/mlpack/methods/ann/init\+\_\+rules/\textbf{ he\+\_\+init.\+hpp}\end{DoxyCompactItemize}
