\section{Select$<$ Input\+Data\+Type, Output\+Data\+Type $>$ Class Template Reference}
\label{classmlpack_1_1ann_1_1Select}\index{Select$<$ Input\+Data\+Type, Output\+Data\+Type $>$@{Select$<$ Input\+Data\+Type, Output\+Data\+Type $>$}}


The select module selects the specified column from a given input matrix.  


\subsection*{Public Member Functions}
\begin{DoxyCompactItemize}
\item 
\textbf{ Select} (const size\+\_\+t index=0, const size\+\_\+t elements=0)
\begin{DoxyCompactList}\small\item\em Create the \doxyref{Select}{p.}{classmlpack_1_1ann_1_1Select} object. \end{DoxyCompactList}\item 
{\footnotesize template$<$typename eT $>$ }\\void \textbf{ Backward} (const arma\+::\+Mat$<$ eT $>$ \&, const arma\+::\+Mat$<$ eT $>$ \&gy, arma\+::\+Mat$<$ eT $>$ \&g)
\begin{DoxyCompactList}\small\item\em Ordinary feed backward pass of a neural network, calculating the function f(x) by propagating x backwards trough f. \end{DoxyCompactList}\item 
Output\+Data\+Type \& \textbf{ Delta} () const
\begin{DoxyCompactList}\small\item\em Get the delta. \end{DoxyCompactList}\item 
Output\+Data\+Type \& \textbf{ Delta} ()
\begin{DoxyCompactList}\small\item\em Modify the delta. \end{DoxyCompactList}\item 
{\footnotesize template$<$typename eT $>$ }\\void \textbf{ Forward} (const arma\+::\+Mat$<$ eT $>$ \&input, arma\+::\+Mat$<$ eT $>$ \&output)
\begin{DoxyCompactList}\small\item\em Ordinary feed forward pass of a neural network, evaluating the function f(x) by propagating the activity forward through f. \end{DoxyCompactList}\item 
Output\+Data\+Type \& \textbf{ Output\+Parameter} () const
\begin{DoxyCompactList}\small\item\em Get the output parameter. \end{DoxyCompactList}\item 
Output\+Data\+Type \& \textbf{ Output\+Parameter} ()
\begin{DoxyCompactList}\small\item\em Modify the output parameter. \end{DoxyCompactList}\item 
{\footnotesize template$<$typename Archive $>$ }\\void \textbf{ serialize} (Archive \&ar, const unsigned int)
\begin{DoxyCompactList}\small\item\em Serialize the layer. \end{DoxyCompactList}\end{DoxyCompactItemize}


\subsection{Detailed Description}
\subsubsection*{template$<$typename Input\+Data\+Type = arma\+::mat, typename Output\+Data\+Type = arma\+::mat$>$\newline
class mlpack\+::ann\+::\+Select$<$ Input\+Data\+Type, Output\+Data\+Type $>$}

The select module selects the specified column from a given input matrix. 


\begin{DoxyTemplParams}{Template Parameters}
{\em Input\+Data\+Type} & Type of the input data (arma\+::colvec, arma\+::mat, arma\+::sp\+\_\+mat or arma\+::cube). \\
\hline
{\em Output\+Data\+Type} & Type of the output data (arma\+::colvec, arma\+::mat, arma\+::sp\+\_\+mat or arma\+::cube). \\
\hline
\end{DoxyTemplParams}


Definition at line 32 of file select.\+hpp.



\subsection{Constructor \& Destructor Documentation}
\mbox{\label{classmlpack_1_1ann_1_1Select_a49e8817f00688d2a7c1be8a33125d7e9}} 
\index{mlpack\+::ann\+::\+Select@{mlpack\+::ann\+::\+Select}!Select@{Select}}
\index{Select@{Select}!mlpack\+::ann\+::\+Select@{mlpack\+::ann\+::\+Select}}
\subsubsection{Select()}
{\footnotesize\ttfamily \textbf{ Select} (\begin{DoxyParamCaption}\item[{const size\+\_\+t}]{index = {\ttfamily 0},  }\item[{const size\+\_\+t}]{elements = {\ttfamily 0} }\end{DoxyParamCaption})}



Create the \doxyref{Select}{p.}{classmlpack_1_1ann_1_1Select} object. 


\begin{DoxyParams}{Parameters}
{\em index} & The column which should be extracted from the given input. \\
\hline
{\em elements} & The number of elements that should be used. \\
\hline
\end{DoxyParams}


\subsection{Member Function Documentation}
\mbox{\label{classmlpack_1_1ann_1_1Select_ad9ad1a3bdb0f3fff5c839ed155e4bbf8}} 
\index{mlpack\+::ann\+::\+Select@{mlpack\+::ann\+::\+Select}!Backward@{Backward}}
\index{Backward@{Backward}!mlpack\+::ann\+::\+Select@{mlpack\+::ann\+::\+Select}}
\subsubsection{Backward()}
{\footnotesize\ttfamily void Backward (\begin{DoxyParamCaption}\item[{const arma\+::\+Mat$<$ eT $>$ \&}]{,  }\item[{const arma\+::\+Mat$<$ eT $>$ \&}]{gy,  }\item[{arma\+::\+Mat$<$ eT $>$ \&}]{g }\end{DoxyParamCaption})}



Ordinary feed backward pass of a neural network, calculating the function f(x) by propagating x backwards trough f. 

Using the results from the feed forward pass.


\begin{DoxyParams}{Parameters}
{\em input} & The propagated input activation. \\
\hline
{\em gy} & The backpropagated error. \\
\hline
{\em g} & The calculated gradient. \\
\hline
\end{DoxyParams}
\mbox{\label{classmlpack_1_1ann_1_1Select_ae7c8eba5764f021cd93e30efe638e63c}} 
\index{mlpack\+::ann\+::\+Select@{mlpack\+::ann\+::\+Select}!Delta@{Delta}}
\index{Delta@{Delta}!mlpack\+::ann\+::\+Select@{mlpack\+::ann\+::\+Select}}
\subsubsection{Delta()\hspace{0.1cm}{\footnotesize\ttfamily [1/2]}}
{\footnotesize\ttfamily Output\+Data\+Type\& Delta (\begin{DoxyParamCaption}{ }\end{DoxyParamCaption}) const\hspace{0.3cm}{\ttfamily [inline]}}



Get the delta. 



Definition at line 73 of file select.\+hpp.

\mbox{\label{classmlpack_1_1ann_1_1Select_ad6601342d560219ce951d554e69e5e87}} 
\index{mlpack\+::ann\+::\+Select@{mlpack\+::ann\+::\+Select}!Delta@{Delta}}
\index{Delta@{Delta}!mlpack\+::ann\+::\+Select@{mlpack\+::ann\+::\+Select}}
\subsubsection{Delta()\hspace{0.1cm}{\footnotesize\ttfamily [2/2]}}
{\footnotesize\ttfamily Output\+Data\+Type\& Delta (\begin{DoxyParamCaption}{ }\end{DoxyParamCaption})\hspace{0.3cm}{\ttfamily [inline]}}



Modify the delta. 



Definition at line 75 of file select.\+hpp.



References Select$<$ Input\+Data\+Type, Output\+Data\+Type $>$\+::serialize().

\mbox{\label{classmlpack_1_1ann_1_1Select_a461f849bc638c15bec262dc9c3a58abe}} 
\index{mlpack\+::ann\+::\+Select@{mlpack\+::ann\+::\+Select}!Forward@{Forward}}
\index{Forward@{Forward}!mlpack\+::ann\+::\+Select@{mlpack\+::ann\+::\+Select}}
\subsubsection{Forward()}
{\footnotesize\ttfamily void Forward (\begin{DoxyParamCaption}\item[{const arma\+::\+Mat$<$ eT $>$ \&}]{input,  }\item[{arma\+::\+Mat$<$ eT $>$ \&}]{output }\end{DoxyParamCaption})}



Ordinary feed forward pass of a neural network, evaluating the function f(x) by propagating the activity forward through f. 


\begin{DoxyParams}{Parameters}
{\em input} & Input data used for evaluating the specified function. \\
\hline
{\em output} & Resulting output activation. \\
\hline
\end{DoxyParams}
\mbox{\label{classmlpack_1_1ann_1_1Select_a8bae962cc603d1cab8d80ec78f8d505d}} 
\index{mlpack\+::ann\+::\+Select@{mlpack\+::ann\+::\+Select}!Output\+Parameter@{Output\+Parameter}}
\index{Output\+Parameter@{Output\+Parameter}!mlpack\+::ann\+::\+Select@{mlpack\+::ann\+::\+Select}}
\subsubsection{Output\+Parameter()\hspace{0.1cm}{\footnotesize\ttfamily [1/2]}}
{\footnotesize\ttfamily Output\+Data\+Type\& Output\+Parameter (\begin{DoxyParamCaption}{ }\end{DoxyParamCaption}) const\hspace{0.3cm}{\ttfamily [inline]}}



Get the output parameter. 



Definition at line 68 of file select.\+hpp.

\mbox{\label{classmlpack_1_1ann_1_1Select_a21d5f745f02c709625a4ee0907f004a5}} 
\index{mlpack\+::ann\+::\+Select@{mlpack\+::ann\+::\+Select}!Output\+Parameter@{Output\+Parameter}}
\index{Output\+Parameter@{Output\+Parameter}!mlpack\+::ann\+::\+Select@{mlpack\+::ann\+::\+Select}}
\subsubsection{Output\+Parameter()\hspace{0.1cm}{\footnotesize\ttfamily [2/2]}}
{\footnotesize\ttfamily Output\+Data\+Type\& Output\+Parameter (\begin{DoxyParamCaption}{ }\end{DoxyParamCaption})\hspace{0.3cm}{\ttfamily [inline]}}



Modify the output parameter. 



Definition at line 70 of file select.\+hpp.

\mbox{\label{classmlpack_1_1ann_1_1Select_af0dd9205158ccf7bcfcd8ff81f79c927}} 
\index{mlpack\+::ann\+::\+Select@{mlpack\+::ann\+::\+Select}!serialize@{serialize}}
\index{serialize@{serialize}!mlpack\+::ann\+::\+Select@{mlpack\+::ann\+::\+Select}}
\subsubsection{serialize()}
{\footnotesize\ttfamily void serialize (\begin{DoxyParamCaption}\item[{Archive \&}]{ar,  }\item[{const unsigned}]{int }\end{DoxyParamCaption})}



Serialize the layer. 



Referenced by Select$<$ Input\+Data\+Type, Output\+Data\+Type $>$\+::\+Delta().



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.\+1/src/mlpack/methods/ann/layer/\textbf{ select.\+hpp}\end{DoxyCompactItemize}
