\section{Ada\+Boost\+Model Class Reference}
\label{classmlpack_1_1adaboost_1_1AdaBoostModel}\index{Ada\+Boost\+Model@{Ada\+Boost\+Model}}


The model to save to disk.  


\subsection*{Public Types}
\begin{DoxyCompactItemize}
\item 
enum \textbf{ Weak\+Learner\+Types} \{ \newline
\textbf{ D\+E\+C\+I\+S\+I\+O\+N\+\_\+\+S\+T\+U\+MP}, 
\newline
\textbf{ P\+E\+R\+C\+E\+P\+T\+R\+ON}
 \}
\end{DoxyCompactItemize}
\subsection*{Public Member Functions}
\begin{DoxyCompactItemize}
\item 
\textbf{ Ada\+Boost\+Model} ()
\begin{DoxyCompactList}\small\item\em Create an empty \doxyref{Ada\+Boost}{p.}{classmlpack_1_1adaboost_1_1AdaBoost} model. \end{DoxyCompactList}\item 
\textbf{ Ada\+Boost\+Model} (const arma\+::\+Col$<$ size\+\_\+t $>$ \&mappings, const size\+\_\+t weak\+Learner\+Type)
\begin{DoxyCompactList}\small\item\em Create the \doxyref{Ada\+Boost}{p.}{classmlpack_1_1adaboost_1_1AdaBoost} model with the given mappings and type. \end{DoxyCompactList}\item 
\textbf{ Ada\+Boost\+Model} (const \textbf{ Ada\+Boost\+Model} \&other)
\begin{DoxyCompactList}\small\item\em Copy constructor. \end{DoxyCompactList}\item 
\textbf{ Ada\+Boost\+Model} (\textbf{ Ada\+Boost\+Model} \&\&other)
\begin{DoxyCompactList}\small\item\em Move constructor. \end{DoxyCompactList}\item 
\textbf{ $\sim$\+Ada\+Boost\+Model} ()
\begin{DoxyCompactList}\small\item\em Clean up memory. \end{DoxyCompactList}\item 
void \textbf{ Classify} (const arma\+::mat \&test\+Data, arma\+::\+Row$<$ size\+\_\+t $>$ \&predictions)
\begin{DoxyCompactList}\small\item\em Classify test points. \end{DoxyCompactList}\item 
void \textbf{ Classify} (const arma\+::mat \&test\+Data, arma\+::\+Row$<$ size\+\_\+t $>$ \&predictions, arma\+::mat \&probabilities)
\begin{DoxyCompactList}\small\item\em Classify test points. \end{DoxyCompactList}\item 
size\+\_\+t \textbf{ Dimensionality} () const
\begin{DoxyCompactList}\small\item\em Get the dimensionality of the model. \end{DoxyCompactList}\item 
size\+\_\+t \& \textbf{ Dimensionality} ()
\begin{DoxyCompactList}\small\item\em Modify the dimensionality of the model. \end{DoxyCompactList}\item 
const arma\+::\+Col$<$ size\+\_\+t $>$ \& \textbf{ Mappings} () const
\begin{DoxyCompactList}\small\item\em Get the mappings. \end{DoxyCompactList}\item 
arma\+::\+Col$<$ size\+\_\+t $>$ \& \textbf{ Mappings} ()
\begin{DoxyCompactList}\small\item\em Modify the mappings. \end{DoxyCompactList}\item 
\textbf{ Ada\+Boost\+Model} \& \textbf{ operator=} (const \textbf{ Ada\+Boost\+Model} \&other)
\begin{DoxyCompactList}\small\item\em Copy assignment operator. \end{DoxyCompactList}\item 
{\footnotesize template$<$typename Archive $>$ }\\void \textbf{ serialize} (Archive \&ar, const unsigned int)
\begin{DoxyCompactList}\small\item\em Serialize the model. \end{DoxyCompactList}\item 
void \textbf{ Train} (const arma\+::mat \&data, const arma\+::\+Row$<$ size\+\_\+t $>$ \&labels, const size\+\_\+t num\+Classes, const size\+\_\+t iterations, const double tolerance)
\begin{DoxyCompactList}\small\item\em Train the model, treat the data is all of the numeric type. \end{DoxyCompactList}\item 
size\+\_\+t \textbf{ Weak\+Learner\+Type} () const
\begin{DoxyCompactList}\small\item\em Get the weak learner type. \end{DoxyCompactList}\item 
size\+\_\+t \& \textbf{ Weak\+Learner\+Type} ()
\begin{DoxyCompactList}\small\item\em Modify the weak learner type. \end{DoxyCompactList}\end{DoxyCompactItemize}


\subsection{Detailed Description}
The model to save to disk. 

Definition at line 26 of file adaboost\+\_\+model.\+hpp.



\subsection{Member Enumeration Documentation}
\mbox{\label{classmlpack_1_1adaboost_1_1AdaBoostModel_ad2d30fa530c8eadc4797c729f91b10b6}} 
\index{mlpack\+::adaboost\+::\+Ada\+Boost\+Model@{mlpack\+::adaboost\+::\+Ada\+Boost\+Model}!Weak\+Learner\+Types@{Weak\+Learner\+Types}}
\index{Weak\+Learner\+Types@{Weak\+Learner\+Types}!mlpack\+::adaboost\+::\+Ada\+Boost\+Model@{mlpack\+::adaboost\+::\+Ada\+Boost\+Model}}
\subsubsection{Weak\+Learner\+Types}
{\footnotesize\ttfamily enum \textbf{ Weak\+Learner\+Types}}

\begin{DoxyEnumFields}{Enumerator}
\raisebox{\heightof{T}}[0pt][0pt]{\index{D\+E\+C\+I\+S\+I\+O\+N\+\_\+\+S\+T\+U\+MP@{D\+E\+C\+I\+S\+I\+O\+N\+\_\+\+S\+T\+U\+MP}!mlpack\+::adaboost\+::\+Ada\+Boost\+Model@{mlpack\+::adaboost\+::\+Ada\+Boost\+Model}}\index{mlpack\+::adaboost\+::\+Ada\+Boost\+Model@{mlpack\+::adaboost\+::\+Ada\+Boost\+Model}!D\+E\+C\+I\+S\+I\+O\+N\+\_\+\+S\+T\+U\+MP@{D\+E\+C\+I\+S\+I\+O\+N\+\_\+\+S\+T\+U\+MP}}}\mbox{\label{classmlpack_1_1adaboost_1_1AdaBoostModel_ad2d30fa530c8eadc4797c729f91b10b6a3b0a8b3700534a49e23eaba0426876dc}} 
D\+E\+C\+I\+S\+I\+O\+N\+\_\+\+S\+T\+U\+MP&\\
\hline

\raisebox{\heightof{T}}[0pt][0pt]{\index{P\+E\+R\+C\+E\+P\+T\+R\+ON@{P\+E\+R\+C\+E\+P\+T\+R\+ON}!mlpack\+::adaboost\+::\+Ada\+Boost\+Model@{mlpack\+::adaboost\+::\+Ada\+Boost\+Model}}\index{mlpack\+::adaboost\+::\+Ada\+Boost\+Model@{mlpack\+::adaboost\+::\+Ada\+Boost\+Model}!P\+E\+R\+C\+E\+P\+T\+R\+ON@{P\+E\+R\+C\+E\+P\+T\+R\+ON}}}\mbox{\label{classmlpack_1_1adaboost_1_1AdaBoostModel_ad2d30fa530c8eadc4797c729f91b10b6a86ae196aae3149d1c609c87be8d499c2}} 
P\+E\+R\+C\+E\+P\+T\+R\+ON&\\
\hline

\end{DoxyEnumFields}


Definition at line 29 of file adaboost\+\_\+model.\+hpp.



\subsection{Constructor \& Destructor Documentation}
\mbox{\label{classmlpack_1_1adaboost_1_1AdaBoostModel_adcba05defdbcbf2619ea58db2a46c1f1}} 
\index{mlpack\+::adaboost\+::\+Ada\+Boost\+Model@{mlpack\+::adaboost\+::\+Ada\+Boost\+Model}!Ada\+Boost\+Model@{Ada\+Boost\+Model}}
\index{Ada\+Boost\+Model@{Ada\+Boost\+Model}!mlpack\+::adaboost\+::\+Ada\+Boost\+Model@{mlpack\+::adaboost\+::\+Ada\+Boost\+Model}}
\subsubsection{Ada\+Boost\+Model()\hspace{0.1cm}{\footnotesize\ttfamily [1/4]}}
{\footnotesize\ttfamily \textbf{ Ada\+Boost\+Model} (\begin{DoxyParamCaption}{ }\end{DoxyParamCaption})}



Create an empty \doxyref{Ada\+Boost}{p.}{classmlpack_1_1adaboost_1_1AdaBoost} model. 

\mbox{\label{classmlpack_1_1adaboost_1_1AdaBoostModel_a38b1c1a146789ab0a1a391004c4910ee}} 
\index{mlpack\+::adaboost\+::\+Ada\+Boost\+Model@{mlpack\+::adaboost\+::\+Ada\+Boost\+Model}!Ada\+Boost\+Model@{Ada\+Boost\+Model}}
\index{Ada\+Boost\+Model@{Ada\+Boost\+Model}!mlpack\+::adaboost\+::\+Ada\+Boost\+Model@{mlpack\+::adaboost\+::\+Ada\+Boost\+Model}}
\subsubsection{Ada\+Boost\+Model()\hspace{0.1cm}{\footnotesize\ttfamily [2/4]}}
{\footnotesize\ttfamily \textbf{ Ada\+Boost\+Model} (\begin{DoxyParamCaption}\item[{const arma\+::\+Col$<$ size\+\_\+t $>$ \&}]{mappings,  }\item[{const size\+\_\+t}]{weak\+Learner\+Type }\end{DoxyParamCaption})}



Create the \doxyref{Ada\+Boost}{p.}{classmlpack_1_1adaboost_1_1AdaBoost} model with the given mappings and type. 

\mbox{\label{classmlpack_1_1adaboost_1_1AdaBoostModel_a99b111fbe30c57fd722c0462d14ce0f7}} 
\index{mlpack\+::adaboost\+::\+Ada\+Boost\+Model@{mlpack\+::adaboost\+::\+Ada\+Boost\+Model}!Ada\+Boost\+Model@{Ada\+Boost\+Model}}
\index{Ada\+Boost\+Model@{Ada\+Boost\+Model}!mlpack\+::adaboost\+::\+Ada\+Boost\+Model@{mlpack\+::adaboost\+::\+Ada\+Boost\+Model}}
\subsubsection{Ada\+Boost\+Model()\hspace{0.1cm}{\footnotesize\ttfamily [3/4]}}
{\footnotesize\ttfamily \textbf{ Ada\+Boost\+Model} (\begin{DoxyParamCaption}\item[{const \textbf{ Ada\+Boost\+Model} \&}]{other }\end{DoxyParamCaption})}



Copy constructor. 

\mbox{\label{classmlpack_1_1adaboost_1_1AdaBoostModel_a5bd98d104419d9424d69c31f28a46d4d}} 
\index{mlpack\+::adaboost\+::\+Ada\+Boost\+Model@{mlpack\+::adaboost\+::\+Ada\+Boost\+Model}!Ada\+Boost\+Model@{Ada\+Boost\+Model}}
\index{Ada\+Boost\+Model@{Ada\+Boost\+Model}!mlpack\+::adaboost\+::\+Ada\+Boost\+Model@{mlpack\+::adaboost\+::\+Ada\+Boost\+Model}}
\subsubsection{Ada\+Boost\+Model()\hspace{0.1cm}{\footnotesize\ttfamily [4/4]}}
{\footnotesize\ttfamily \textbf{ Ada\+Boost\+Model} (\begin{DoxyParamCaption}\item[{\textbf{ Ada\+Boost\+Model} \&\&}]{other }\end{DoxyParamCaption})}



Move constructor. 

\mbox{\label{classmlpack_1_1adaboost_1_1AdaBoostModel_ae452b3b3579c2d8aeacb4bc5b5183857}} 
\index{mlpack\+::adaboost\+::\+Ada\+Boost\+Model@{mlpack\+::adaboost\+::\+Ada\+Boost\+Model}!````~Ada\+Boost\+Model@{$\sim$\+Ada\+Boost\+Model}}
\index{````~Ada\+Boost\+Model@{$\sim$\+Ada\+Boost\+Model}!mlpack\+::adaboost\+::\+Ada\+Boost\+Model@{mlpack\+::adaboost\+::\+Ada\+Boost\+Model}}
\subsubsection{$\sim$\+Ada\+Boost\+Model()}
{\footnotesize\ttfamily $\sim$\textbf{ Ada\+Boost\+Model} (\begin{DoxyParamCaption}{ }\end{DoxyParamCaption})}



Clean up memory. 



\subsection{Member Function Documentation}
\mbox{\label{classmlpack_1_1adaboost_1_1AdaBoostModel_a275941a22a35f6b5ca8aaa11073c34d2}} 
\index{mlpack\+::adaboost\+::\+Ada\+Boost\+Model@{mlpack\+::adaboost\+::\+Ada\+Boost\+Model}!Classify@{Classify}}
\index{Classify@{Classify}!mlpack\+::adaboost\+::\+Ada\+Boost\+Model@{mlpack\+::adaboost\+::\+Ada\+Boost\+Model}}
\subsubsection{Classify()\hspace{0.1cm}{\footnotesize\ttfamily [1/2]}}
{\footnotesize\ttfamily void Classify (\begin{DoxyParamCaption}\item[{const arma\+::mat \&}]{test\+Data,  }\item[{arma\+::\+Row$<$ size\+\_\+t $>$ \&}]{predictions }\end{DoxyParamCaption})}



Classify test points. 



Referenced by Ada\+Boost\+Model\+::\+Dimensionality().

\mbox{\label{classmlpack_1_1adaboost_1_1AdaBoostModel_a4fceef357aba14291c04b9d9bb2d1e82}} 
\index{mlpack\+::adaboost\+::\+Ada\+Boost\+Model@{mlpack\+::adaboost\+::\+Ada\+Boost\+Model}!Classify@{Classify}}
\index{Classify@{Classify}!mlpack\+::adaboost\+::\+Ada\+Boost\+Model@{mlpack\+::adaboost\+::\+Ada\+Boost\+Model}}
\subsubsection{Classify()\hspace{0.1cm}{\footnotesize\ttfamily [2/2]}}
{\footnotesize\ttfamily void Classify (\begin{DoxyParamCaption}\item[{const arma\+::mat \&}]{test\+Data,  }\item[{arma\+::\+Row$<$ size\+\_\+t $>$ \&}]{predictions,  }\item[{arma\+::mat \&}]{probabilities }\end{DoxyParamCaption})}



Classify test points. 

\mbox{\label{classmlpack_1_1adaboost_1_1AdaBoostModel_a78eda6bfb9e9462afa0fc85e32abe1af}} 
\index{mlpack\+::adaboost\+::\+Ada\+Boost\+Model@{mlpack\+::adaboost\+::\+Ada\+Boost\+Model}!Dimensionality@{Dimensionality}}
\index{Dimensionality@{Dimensionality}!mlpack\+::adaboost\+::\+Ada\+Boost\+Model@{mlpack\+::adaboost\+::\+Ada\+Boost\+Model}}
\subsubsection{Dimensionality()\hspace{0.1cm}{\footnotesize\ttfamily [1/2]}}
{\footnotesize\ttfamily size\+\_\+t Dimensionality (\begin{DoxyParamCaption}{ }\end{DoxyParamCaption}) const\hspace{0.3cm}{\ttfamily [inline]}}



Get the dimensionality of the model. 



Definition at line 78 of file adaboost\+\_\+model.\+hpp.

\mbox{\label{classmlpack_1_1adaboost_1_1AdaBoostModel_a787adc650f11b9430f6bd0b937bbe6b0}} 
\index{mlpack\+::adaboost\+::\+Ada\+Boost\+Model@{mlpack\+::adaboost\+::\+Ada\+Boost\+Model}!Dimensionality@{Dimensionality}}
\index{Dimensionality@{Dimensionality}!mlpack\+::adaboost\+::\+Ada\+Boost\+Model@{mlpack\+::adaboost\+::\+Ada\+Boost\+Model}}
\subsubsection{Dimensionality()\hspace{0.1cm}{\footnotesize\ttfamily [2/2]}}
{\footnotesize\ttfamily size\+\_\+t\& Dimensionality (\begin{DoxyParamCaption}{ }\end{DoxyParamCaption})\hspace{0.3cm}{\ttfamily [inline]}}



Modify the dimensionality of the model. 



Definition at line 80 of file adaboost\+\_\+model.\+hpp.



References Ada\+Boost\+Model\+::\+Classify(), and Ada\+Boost\+Model\+::\+Train().

\mbox{\label{classmlpack_1_1adaboost_1_1AdaBoostModel_a83e8ff63d5c49eddaaf9eadb64f3aef9}} 
\index{mlpack\+::adaboost\+::\+Ada\+Boost\+Model@{mlpack\+::adaboost\+::\+Ada\+Boost\+Model}!Mappings@{Mappings}}
\index{Mappings@{Mappings}!mlpack\+::adaboost\+::\+Ada\+Boost\+Model@{mlpack\+::adaboost\+::\+Ada\+Boost\+Model}}
\subsubsection{Mappings()\hspace{0.1cm}{\footnotesize\ttfamily [1/2]}}
{\footnotesize\ttfamily const arma\+::\+Col$<$size\+\_\+t$>$\& Mappings (\begin{DoxyParamCaption}{ }\end{DoxyParamCaption}) const\hspace{0.3cm}{\ttfamily [inline]}}



Get the mappings. 



Definition at line 68 of file adaboost\+\_\+model.\+hpp.

\mbox{\label{classmlpack_1_1adaboost_1_1AdaBoostModel_ac18a534c636043f5c3d6b90992d83129}} 
\index{mlpack\+::adaboost\+::\+Ada\+Boost\+Model@{mlpack\+::adaboost\+::\+Ada\+Boost\+Model}!Mappings@{Mappings}}
\index{Mappings@{Mappings}!mlpack\+::adaboost\+::\+Ada\+Boost\+Model@{mlpack\+::adaboost\+::\+Ada\+Boost\+Model}}
\subsubsection{Mappings()\hspace{0.1cm}{\footnotesize\ttfamily [2/2]}}
{\footnotesize\ttfamily arma\+::\+Col$<$size\+\_\+t$>$\& Mappings (\begin{DoxyParamCaption}{ }\end{DoxyParamCaption})\hspace{0.3cm}{\ttfamily [inline]}}



Modify the mappings. 



Definition at line 70 of file adaboost\+\_\+model.\+hpp.

\mbox{\label{classmlpack_1_1adaboost_1_1AdaBoostModel_ab74135df3386b81f3dd06f37caebb441}} 
\index{mlpack\+::adaboost\+::\+Ada\+Boost\+Model@{mlpack\+::adaboost\+::\+Ada\+Boost\+Model}!operator=@{operator=}}
\index{operator=@{operator=}!mlpack\+::adaboost\+::\+Ada\+Boost\+Model@{mlpack\+::adaboost\+::\+Ada\+Boost\+Model}}
\subsubsection{operator=()}
{\footnotesize\ttfamily \textbf{ Ada\+Boost\+Model}\& operator= (\begin{DoxyParamCaption}\item[{const \textbf{ Ada\+Boost\+Model} \&}]{other }\end{DoxyParamCaption})}



Copy assignment operator. 

\mbox{\label{classmlpack_1_1adaboost_1_1AdaBoostModel_af0dd9205158ccf7bcfcd8ff81f79c927}} 
\index{mlpack\+::adaboost\+::\+Ada\+Boost\+Model@{mlpack\+::adaboost\+::\+Ada\+Boost\+Model}!serialize@{serialize}}
\index{serialize@{serialize}!mlpack\+::adaboost\+::\+Ada\+Boost\+Model@{mlpack\+::adaboost\+::\+Ada\+Boost\+Model}}
\subsubsection{serialize()}
{\footnotesize\ttfamily void serialize (\begin{DoxyParamCaption}\item[{Archive \&}]{ar,  }\item[{const unsigned}]{int }\end{DoxyParamCaption})\hspace{0.3cm}{\ttfamily [inline]}}



Serialize the model. 



Definition at line 100 of file adaboost\+\_\+model.\+hpp.

\mbox{\label{classmlpack_1_1adaboost_1_1AdaBoostModel_a5360ac8d82301e1e7037d2a5a9f094a9}} 
\index{mlpack\+::adaboost\+::\+Ada\+Boost\+Model@{mlpack\+::adaboost\+::\+Ada\+Boost\+Model}!Train@{Train}}
\index{Train@{Train}!mlpack\+::adaboost\+::\+Ada\+Boost\+Model@{mlpack\+::adaboost\+::\+Ada\+Boost\+Model}}
\subsubsection{Train()}
{\footnotesize\ttfamily void Train (\begin{DoxyParamCaption}\item[{const arma\+::mat \&}]{data,  }\item[{const arma\+::\+Row$<$ size\+\_\+t $>$ \&}]{labels,  }\item[{const size\+\_\+t}]{num\+Classes,  }\item[{const size\+\_\+t}]{iterations,  }\item[{const double}]{tolerance }\end{DoxyParamCaption})}



Train the model, treat the data is all of the numeric type. 



Referenced by Ada\+Boost\+Model\+::\+Dimensionality().

\mbox{\label{classmlpack_1_1adaboost_1_1AdaBoostModel_a022ff1546accf8fe7e41253c4837edcb}} 
\index{mlpack\+::adaboost\+::\+Ada\+Boost\+Model@{mlpack\+::adaboost\+::\+Ada\+Boost\+Model}!Weak\+Learner\+Type@{Weak\+Learner\+Type}}
\index{Weak\+Learner\+Type@{Weak\+Learner\+Type}!mlpack\+::adaboost\+::\+Ada\+Boost\+Model@{mlpack\+::adaboost\+::\+Ada\+Boost\+Model}}
\subsubsection{Weak\+Learner\+Type()\hspace{0.1cm}{\footnotesize\ttfamily [1/2]}}
{\footnotesize\ttfamily size\+\_\+t Weak\+Learner\+Type (\begin{DoxyParamCaption}{ }\end{DoxyParamCaption}) const\hspace{0.3cm}{\ttfamily [inline]}}



Get the weak learner type. 



Definition at line 73 of file adaboost\+\_\+model.\+hpp.

\mbox{\label{classmlpack_1_1adaboost_1_1AdaBoostModel_aba360992c5850f1dba9279efeb94980b}} 
\index{mlpack\+::adaboost\+::\+Ada\+Boost\+Model@{mlpack\+::adaboost\+::\+Ada\+Boost\+Model}!Weak\+Learner\+Type@{Weak\+Learner\+Type}}
\index{Weak\+Learner\+Type@{Weak\+Learner\+Type}!mlpack\+::adaboost\+::\+Ada\+Boost\+Model@{mlpack\+::adaboost\+::\+Ada\+Boost\+Model}}
\subsubsection{Weak\+Learner\+Type()\hspace{0.1cm}{\footnotesize\ttfamily [2/2]}}
{\footnotesize\ttfamily size\+\_\+t\& Weak\+Learner\+Type (\begin{DoxyParamCaption}{ }\end{DoxyParamCaption})\hspace{0.3cm}{\ttfamily [inline]}}



Modify the weak learner type. 



Definition at line 75 of file adaboost\+\_\+model.\+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/adaboost/\textbf{ adaboost\+\_\+model.\+hpp}\end{DoxyCompactItemize}
