\section{Network\+Initialization$<$ Initialization\+Rule\+Type, Custom\+Layers $>$ Class Template Reference}
\label{classmlpack_1_1ann_1_1NetworkInitialization}\index{Network\+Initialization$<$ Initialization\+Rule\+Type, Custom\+Layers $>$@{Network\+Initialization$<$ Initialization\+Rule\+Type, Custom\+Layers $>$}}


This class is used to initialize the network with the given initialization rule.  


\subsection*{Public Member Functions}
\begin{DoxyCompactItemize}
\item 
\textbf{ Network\+Initialization} (const Initialization\+Rule\+Type \&initialize\+Rule=Initialization\+Rule\+Type())
\begin{DoxyCompactList}\small\item\em Use the given initialization rule to initialize the specified network. \end{DoxyCompactList}\item 
{\footnotesize template$<$typename eT $>$ }\\void \textbf{ Initialize} (const std\+::vector$<$ \textbf{ Layer\+Types}$<$ Custom\+Layers... $>$ $>$ \&network, arma\+::\+Mat$<$ eT $>$ \&parameter, size\+\_\+t parameter\+Offset=0)
\begin{DoxyCompactList}\small\item\em Initialize the specified network and store the results in the given parameter. \end{DoxyCompactList}\end{DoxyCompactItemize}


\subsection{Detailed Description}
\subsubsection*{template$<$typename Initialization\+Rule\+Type, typename... Custom\+Layers$>$\newline
class mlpack\+::ann\+::\+Network\+Initialization$<$ Initialization\+Rule\+Type, Custom\+Layers $>$}

This class is used to initialize the network with the given initialization rule. 

Definition at line 33 of file network\+\_\+init.\+hpp.



\subsection{Constructor \& Destructor Documentation}
\mbox{\label{classmlpack_1_1ann_1_1NetworkInitialization_aca7ed39585c544fbfa06ebb1a15a988b}} 
\index{mlpack\+::ann\+::\+Network\+Initialization@{mlpack\+::ann\+::\+Network\+Initialization}!Network\+Initialization@{Network\+Initialization}}
\index{Network\+Initialization@{Network\+Initialization}!mlpack\+::ann\+::\+Network\+Initialization@{mlpack\+::ann\+::\+Network\+Initialization}}
\subsubsection{Network\+Initialization()}
{\footnotesize\ttfamily \textbf{ Network\+Initialization} (\begin{DoxyParamCaption}\item[{const Initialization\+Rule\+Type \&}]{initialize\+Rule = {\ttfamily InitializationRuleType()} }\end{DoxyParamCaption})\hspace{0.3cm}{\ttfamily [inline]}}



Use the given initialization rule to initialize the specified network. 


\begin{DoxyParams}{Parameters}
{\em initialize\+Rule} & Rule to initialize the given network. \\
\hline
\end{DoxyParams}


Definition at line 41 of file network\+\_\+init.\+hpp.



\subsection{Member Function Documentation}
\mbox{\label{classmlpack_1_1ann_1_1NetworkInitialization_aecdd259437c6d51c512aa2948cdcdff2}} 
\index{mlpack\+::ann\+::\+Network\+Initialization@{mlpack\+::ann\+::\+Network\+Initialization}!Initialize@{Initialize}}
\index{Initialize@{Initialize}!mlpack\+::ann\+::\+Network\+Initialization@{mlpack\+::ann\+::\+Network\+Initialization}}
\subsubsection{Initialize()}
{\footnotesize\ttfamily void Initialize (\begin{DoxyParamCaption}\item[{const std\+::vector$<$ \textbf{ Layer\+Types}$<$ Custom\+Layers... $>$ $>$ \&}]{network,  }\item[{arma\+::\+Mat$<$ eT $>$ \&}]{parameter,  }\item[{size\+\_\+t}]{parameter\+Offset = {\ttfamily 0} }\end{DoxyParamCaption})\hspace{0.3cm}{\ttfamily [inline]}}



Initialize the specified network and store the results in the given parameter. 


\begin{DoxyParams}{Parameters}
{\em network} & Network that should be initialized. \\
\hline
{\em parameter} & The network parameter. \\
\hline
{\em parameter\+Offset} & Offset for network paramater, default 0. \\
\hline
\end{DoxyParams}


Definition at line 57 of file network\+\_\+init.\+hpp.



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{ network\+\_\+init.\+hpp}\end{DoxyCompactItemize}
