\section{Kathirvalavakumar\+Subavathi\+Initialization Class Reference}
\label{classmlpack_1_1ann_1_1KathirvalavakumarSubavathiInitialization}\index{Kathirvalavakumar\+Subavathi\+Initialization@{Kathirvalavakumar\+Subavathi\+Initialization}}


This class is used to initialize the weight matrix with the method proposed by T.  


\subsection*{Public Member Functions}
\begin{DoxyCompactItemize}
\item 
{\footnotesize template$<$typename eT $>$ }\\\textbf{ Kathirvalavakumar\+Subavathi\+Initialization} (const arma\+::\+Mat$<$ eT $>$ \&data, const double s)
\begin{DoxyCompactList}\small\item\em Initialize the random initialization rule with the given values. \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 specified weight matrix with the Kathirvalavakumar-\/\+Subavathi method. \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 the Kathirvalavakumar-\/\+Subavathi method. \end{DoxyCompactList}\end{DoxyCompactItemize}


\subsection{Detailed Description}
This class is used to initialize the weight matrix with the method proposed by T. 

Kathirvalavakumar and S. Subavathi. The method is based on sensitivity analysis using using cauchy’s inequality. The method is defined by

\begin{eqnarray*} \overline{s} &=& f^{-1}(\overline{t}) \\ \Theta^{1}_{p} &\le& \overline{s} \sqrt{\frac{3}{I \sum_{i = 1}^{I} (x_{ip}^2)}} \\ \Theta^1 &=& min(\Theta_{p}^{1}); p=1,2,..,P \\ -\Theta^{1} \le w_{i}^{1} &\le& \Theta^{1} \end{eqnarray*}

where I is the number of inputs including the bias, p refers the pattern considered in training, f is the transfer function and \textbackslash{}=\{s\} is the active region in which the derivative of the activation function is greater than 4\% of the maximum derivatives. 

Definition at line 60 of file kathirvalavakumar\+\_\+subavathi\+\_\+init.\+hpp.



\subsection{Constructor \& Destructor Documentation}
\mbox{\label{classmlpack_1_1ann_1_1KathirvalavakumarSubavathiInitialization_aaf0e7a11a0a428552525a83382e45148}} 
\index{mlpack\+::ann\+::\+Kathirvalavakumar\+Subavathi\+Initialization@{mlpack\+::ann\+::\+Kathirvalavakumar\+Subavathi\+Initialization}!Kathirvalavakumar\+Subavathi\+Initialization@{Kathirvalavakumar\+Subavathi\+Initialization}}
\index{Kathirvalavakumar\+Subavathi\+Initialization@{Kathirvalavakumar\+Subavathi\+Initialization}!mlpack\+::ann\+::\+Kathirvalavakumar\+Subavathi\+Initialization@{mlpack\+::ann\+::\+Kathirvalavakumar\+Subavathi\+Initialization}}
\subsubsection{Kathirvalavakumar\+Subavathi\+Initialization()}
{\footnotesize\ttfamily \textbf{ Kathirvalavakumar\+Subavathi\+Initialization} (\begin{DoxyParamCaption}\item[{const arma\+::\+Mat$<$ eT $>$ \&}]{data,  }\item[{const double}]{s }\end{DoxyParamCaption})\hspace{0.3cm}{\ttfamily [inline]}}



Initialize the random initialization rule with the given values. 


\begin{DoxyParams}{Parameters}
{\em data} & The input patterns. \\
\hline
{\em s} & Parameter that defines the active region. \\
\hline
\end{DoxyParams}


Definition at line 70 of file kathirvalavakumar\+\_\+subavathi\+\_\+init.\+hpp.



\subsection{Member Function Documentation}
\mbox{\label{classmlpack_1_1ann_1_1KathirvalavakumarSubavathiInitialization_a5cfe472251a41fffd45b170bb0d3c1bd}} 
\index{mlpack\+::ann\+::\+Kathirvalavakumar\+Subavathi\+Initialization@{mlpack\+::ann\+::\+Kathirvalavakumar\+Subavathi\+Initialization}!Initialize@{Initialize}}
\index{Initialize@{Initialize}!mlpack\+::ann\+::\+Kathirvalavakumar\+Subavathi\+Initialization@{mlpack\+::ann\+::\+Kathirvalavakumar\+Subavathi\+Initialization}}
\subsubsection{Initialize()\hspace{0.1cm}{\footnotesize\ttfamily [1/2]}}
{\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 specified weight matrix with the Kathirvalavakumar-\/\+Subavathi method. 


\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 85 of file kathirvalavakumar\+\_\+subavathi\+\_\+init.\+hpp.



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



Referenced by Kathirvalavakumar\+Subavathi\+Initialization\+::\+Initialize().

\mbox{\label{classmlpack_1_1ann_1_1KathirvalavakumarSubavathiInitialization_a40a2b6466bdba0f6aab4eb92b6e65934}} 
\index{mlpack\+::ann\+::\+Kathirvalavakumar\+Subavathi\+Initialization@{mlpack\+::ann\+::\+Kathirvalavakumar\+Subavathi\+Initialization}!Initialize@{Initialize}}
\index{Initialize@{Initialize}!mlpack\+::ann\+::\+Kathirvalavakumar\+Subavathi\+Initialization@{mlpack\+::ann\+::\+Kathirvalavakumar\+Subavathi\+Initialization}}
\subsubsection{Initialize()\hspace{0.1cm}{\footnotesize\ttfamily [2/2]}}
{\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 the Kathirvalavakumar-\/\+Subavathi method. 


\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 102 of file kathirvalavakumar\+\_\+subavathi\+\_\+init.\+hpp.



References Kathirvalavakumar\+Subavathi\+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-\/3.\+3.\+0/src/mlpack/methods/ann/init\+\_\+rules/\textbf{ kathirvalavakumar\+\_\+subavathi\+\_\+init.\+hpp}\end{DoxyCompactItemize}
