\section{Concat\+Performance$<$ Output\+Layer\+Type, Input\+Data\+Type, Output\+Data\+Type $>$ Class Template Reference}
\label{classmlpack_1_1ann_1_1ConcatPerformance}\index{Concat\+Performance$<$ Output\+Layer\+Type, Input\+Data\+Type, Output\+Data\+Type $>$@{Concat\+Performance$<$ Output\+Layer\+Type, Input\+Data\+Type, Output\+Data\+Type $>$}}


Implementation of the concat performance class.  


\subsection*{Public Member Functions}
\begin{DoxyCompactItemize}
\item 
\textbf{ Concat\+Performance} (const size\+\_\+t in\+Size=0, Output\+Layer\+Type \&\&output\+Layer=Output\+Layer\+Type())
\begin{DoxyCompactList}\small\item\em Create the \doxyref{Concat\+Performance}{p.}{classmlpack_1_1ann_1_1ConcatPerformance} object. \end{DoxyCompactList}\item 
{\footnotesize template$<$typename eT $>$ }\\void \textbf{ Backward} (const arma\+::\+Mat$<$ eT $>$ \&input, const arma\+::\+Mat$<$ eT $>$ \&target, arma\+::\+Mat$<$ eT $>$ \&output)
\begin{DoxyCompactList}\small\item\em Ordinary feed backward pass of a neural network. \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 $>$ }\\double \textbf{ Forward} (const arma\+::\+Mat$<$ eT $>$ \&input, arma\+::\+Mat$<$ eT $>$ \&target)
\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 \&, const unsigned int)
\begin{DoxyCompactList}\small\item\em Serialize the layer. \end{DoxyCompactList}\end{DoxyCompactItemize}


\subsection{Detailed Description}
\subsubsection*{template$<$typename Output\+Layer\+Type = Negative\+Log\+Likelihood$<$$>$, typename Input\+Data\+Type = arma\+::mat, typename Output\+Data\+Type = arma\+::mat$>$\newline
class mlpack\+::ann\+::\+Concat\+Performance$<$ Output\+Layer\+Type, Input\+Data\+Type, Output\+Data\+Type $>$}

Implementation of the concat performance class. 

The class works as a feed-\/forward fully connected network container which plugs performance layers together.


\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 39 of file concat\+\_\+performance.\+hpp.



\subsection{Constructor \& Destructor Documentation}
\mbox{\label{classmlpack_1_1ann_1_1ConcatPerformance_ac233d7c30da79cff9862f48ad979ad47}} 
\index{mlpack\+::ann\+::\+Concat\+Performance@{mlpack\+::ann\+::\+Concat\+Performance}!Concat\+Performance@{Concat\+Performance}}
\index{Concat\+Performance@{Concat\+Performance}!mlpack\+::ann\+::\+Concat\+Performance@{mlpack\+::ann\+::\+Concat\+Performance}}
\subsubsection{Concat\+Performance()}
{\footnotesize\ttfamily \textbf{ Concat\+Performance} (\begin{DoxyParamCaption}\item[{const size\+\_\+t}]{in\+Size = {\ttfamily 0},  }\item[{Output\+Layer\+Type \&\&}]{output\+Layer = {\ttfamily OutputLayerType()} }\end{DoxyParamCaption})}



Create the \doxyref{Concat\+Performance}{p.}{classmlpack_1_1ann_1_1ConcatPerformance} object. 


\begin{DoxyParams}{Parameters}
{\em in\+Size} & The number of inputs. \\
\hline
{\em output\+Layer} & Output layer used to evaluate the network. \\
\hline
\end{DoxyParams}


\subsection{Member Function Documentation}
\mbox{\label{classmlpack_1_1ann_1_1ConcatPerformance_ab9c66259e32d4da09478464dc742c984}} 
\index{mlpack\+::ann\+::\+Concat\+Performance@{mlpack\+::ann\+::\+Concat\+Performance}!Backward@{Backward}}
\index{Backward@{Backward}!mlpack\+::ann\+::\+Concat\+Performance@{mlpack\+::ann\+::\+Concat\+Performance}}
\subsubsection{Backward()}
{\footnotesize\ttfamily void Backward (\begin{DoxyParamCaption}\item[{const arma\+::\+Mat$<$ eT $>$ \&}]{input,  }\item[{const arma\+::\+Mat$<$ eT $>$ \&}]{target,  }\item[{arma\+::\+Mat$<$ eT $>$ \&}]{output }\end{DoxyParamCaption})}



Ordinary feed backward pass of a neural network. 

The negative log likelihood layer expectes that the input contains log-\/probabilities for each class. The layer also expects a class index, in the range between 1 and the number of classes, as target when calling the Forward function.


\begin{DoxyParams}{Parameters}
{\em input} & The propagated input activation. \\
\hline
{\em target} & The target vector, that contains the class index in the range between 1 and the number of classes. \\
\hline
{\em output} & The calculated error. \\
\hline
\end{DoxyParams}
\mbox{\label{classmlpack_1_1ann_1_1ConcatPerformance_ae7c8eba5764f021cd93e30efe638e63c}} 
\index{mlpack\+::ann\+::\+Concat\+Performance@{mlpack\+::ann\+::\+Concat\+Performance}!Delta@{Delta}}
\index{Delta@{Delta}!mlpack\+::ann\+::\+Concat\+Performance@{mlpack\+::ann\+::\+Concat\+Performance}}
\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 82 of file concat\+\_\+performance.\+hpp.

\mbox{\label{classmlpack_1_1ann_1_1ConcatPerformance_ad6601342d560219ce951d554e69e5e87}} 
\index{mlpack\+::ann\+::\+Concat\+Performance@{mlpack\+::ann\+::\+Concat\+Performance}!Delta@{Delta}}
\index{Delta@{Delta}!mlpack\+::ann\+::\+Concat\+Performance@{mlpack\+::ann\+::\+Concat\+Performance}}
\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 84 of file concat\+\_\+performance.\+hpp.



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

\mbox{\label{classmlpack_1_1ann_1_1ConcatPerformance_a0eefbc800c9645b1dc415fba4169c417}} 
\index{mlpack\+::ann\+::\+Concat\+Performance@{mlpack\+::ann\+::\+Concat\+Performance}!Forward@{Forward}}
\index{Forward@{Forward}!mlpack\+::ann\+::\+Concat\+Performance@{mlpack\+::ann\+::\+Concat\+Performance}}
\subsubsection{Forward()}
{\footnotesize\ttfamily double Forward (\begin{DoxyParamCaption}\item[{const arma\+::\+Mat$<$ eT $>$ \&}]{input,  }\item[{arma\+::\+Mat$<$ eT $>$ \&}]{target }\end{DoxyParamCaption})}

\mbox{\label{classmlpack_1_1ann_1_1ConcatPerformance_a8bae962cc603d1cab8d80ec78f8d505d}} 
\index{mlpack\+::ann\+::\+Concat\+Performance@{mlpack\+::ann\+::\+Concat\+Performance}!Output\+Parameter@{Output\+Parameter}}
\index{Output\+Parameter@{Output\+Parameter}!mlpack\+::ann\+::\+Concat\+Performance@{mlpack\+::ann\+::\+Concat\+Performance}}
\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 77 of file concat\+\_\+performance.\+hpp.

\mbox{\label{classmlpack_1_1ann_1_1ConcatPerformance_a21d5f745f02c709625a4ee0907f004a5}} 
\index{mlpack\+::ann\+::\+Concat\+Performance@{mlpack\+::ann\+::\+Concat\+Performance}!Output\+Parameter@{Output\+Parameter}}
\index{Output\+Parameter@{Output\+Parameter}!mlpack\+::ann\+::\+Concat\+Performance@{mlpack\+::ann\+::\+Concat\+Performance}}
\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 79 of file concat\+\_\+performance.\+hpp.

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



Serialize the layer. 



Referenced by Concat\+Performance$<$ Output\+Layer\+Type, 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.\+0/src/mlpack/methods/ann/layer/\textbf{ concat\+\_\+performance.\+hpp}\end{DoxyCompactItemize}
