\section{Hoeffding\+Tree\+Model Class Reference}
\label{classmlpack_1_1tree_1_1HoeffdingTreeModel}\index{Hoeffding\+Tree\+Model@{Hoeffding\+Tree\+Model}}


This class is a serializable Hoeffding tree model that can hold four different types of Hoeffding trees.  


\subsection*{Public Types}
\begin{DoxyCompactItemize}
\item 
typedef \textbf{ Hoeffding\+Tree}$<$ \textbf{ Gini\+Impurity}, \textbf{ Binary\+Double\+Numeric\+Split}, \textbf{ Hoeffding\+Categorical\+Split} $>$ \textbf{ Gini\+Binary\+Tree\+Type}
\begin{DoxyCompactList}\small\item\em Convenience typedef for G\+I\+N\+I\+\_\+\+B\+I\+N\+A\+RY tree type. \end{DoxyCompactList}\item 
typedef \textbf{ Hoeffding\+Tree}$<$ \textbf{ Gini\+Impurity}, \textbf{ Hoeffding\+Double\+Numeric\+Split}, \textbf{ Hoeffding\+Categorical\+Split} $>$ \textbf{ Gini\+Hoeffding\+Tree\+Type}
\begin{DoxyCompactList}\small\item\em Convenience typedef for G\+I\+N\+I\+\_\+\+H\+O\+E\+F\+F\+D\+I\+NG tree type. \end{DoxyCompactList}\item 
typedef \textbf{ Hoeffding\+Tree}$<$ \textbf{ Information\+Gain}, \textbf{ Binary\+Double\+Numeric\+Split}, \textbf{ Hoeffding\+Categorical\+Split} $>$ \textbf{ Info\+Binary\+Tree\+Type}
\begin{DoxyCompactList}\small\item\em Convenience typedef for I\+N\+F\+O\+\_\+\+B\+I\+N\+A\+RY tree type. \end{DoxyCompactList}\item 
typedef \textbf{ Hoeffding\+Tree}$<$ \textbf{ Information\+Gain}, \textbf{ Hoeffding\+Double\+Numeric\+Split}, \textbf{ Hoeffding\+Categorical\+Split} $>$ \textbf{ Info\+Hoeffding\+Tree\+Type}
\begin{DoxyCompactList}\small\item\em Convenience typedef for I\+N\+F\+O\+\_\+\+H\+O\+E\+F\+F\+D\+I\+NG tree type. \end{DoxyCompactList}\item 
enum \textbf{ Tree\+Type} \{ \newline
\textbf{ G\+I\+N\+I\+\_\+\+H\+O\+E\+F\+F\+D\+I\+NG}, 
\newline
\textbf{ G\+I\+N\+I\+\_\+\+B\+I\+N\+A\+RY}, 
\newline
\textbf{ I\+N\+F\+O\+\_\+\+H\+O\+E\+F\+F\+D\+I\+NG}, 
\newline
\textbf{ I\+N\+F\+O\+\_\+\+B\+I\+N\+A\+RY}
 \}\begin{DoxyCompactList}\small\item\em This enumerates the four types of trees we can hold. \end{DoxyCompactList}
\end{DoxyCompactItemize}
\subsection*{Public Member Functions}
\begin{DoxyCompactItemize}
\item 
\textbf{ Hoeffding\+Tree\+Model} (const \textbf{ Tree\+Type} \&type=\textbf{ G\+I\+N\+I\+\_\+\+H\+O\+E\+F\+F\+D\+I\+NG})
\begin{DoxyCompactList}\small\item\em Construct the Hoeffding tree model, but don\textquotesingle{}t initialize any tree. \end{DoxyCompactList}\item 
\textbf{ Hoeffding\+Tree\+Model} (const \textbf{ Hoeffding\+Tree\+Model} \&other)
\begin{DoxyCompactList}\small\item\em Copy the Hoeffding tree model from the given other model. \end{DoxyCompactList}\item 
\textbf{ Hoeffding\+Tree\+Model} (\textbf{ Hoeffding\+Tree\+Model} \&\&other)
\begin{DoxyCompactList}\small\item\em Move the Hoeffding tree model from the given other model. \end{DoxyCompactList}\item 
\textbf{ $\sim$\+Hoeffding\+Tree\+Model} ()
\begin{DoxyCompactList}\small\item\em Clean up the given model. \end{DoxyCompactList}\item 
void \textbf{ Build\+Model} (const arma\+::mat \&dataset, const \textbf{ data\+::\+Dataset\+Info} \&dataset\+Info, const arma\+::\+Row$<$ size\+\_\+t $>$ \&labels, const size\+\_\+t num\+Classes, const bool batch\+Training, const double success\+Probability, const size\+\_\+t max\+Samples, const size\+\_\+t check\+Interval, const size\+\_\+t min\+Samples, const size\+\_\+t bins, const size\+\_\+t observations\+Before\+Binning)
\begin{DoxyCompactList}\small\item\em Train the model on the given dataset with the given labels. \end{DoxyCompactList}\item 
void \textbf{ Classify} (const arma\+::mat \&dataset, arma\+::\+Row$<$ size\+\_\+t $>$ \&predictions) const
\begin{DoxyCompactList}\small\item\em Using the model, classify the given test points. \end{DoxyCompactList}\item 
void \textbf{ Classify} (const arma\+::mat \&dataset, arma\+::\+Row$<$ size\+\_\+t $>$ \&predictions, arma\+::rowvec \&probabilities) const
\begin{DoxyCompactList}\small\item\em Using the model, classify the given test points, returning class probabilities. \end{DoxyCompactList}\item 
size\+\_\+t \textbf{ Num\+Nodes} () const
\begin{DoxyCompactList}\small\item\em Get the number of nodes in the tree. \end{DoxyCompactList}\item 
\textbf{ Hoeffding\+Tree\+Model} \& \textbf{ operator=} (const \textbf{ Hoeffding\+Tree\+Model} \&other)
\begin{DoxyCompactList}\small\item\em Copy the Hoeffding tree model from the given other model. \end{DoxyCompactList}\item 
\textbf{ Hoeffding\+Tree\+Model} \& \textbf{ operator=} (\textbf{ Hoeffding\+Tree\+Model} \&\&other)
\begin{DoxyCompactList}\small\item\em Move the Hoeffding tree model from the given other model. \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 \&dataset, const arma\+::\+Row$<$ size\+\_\+t $>$ \&labels, const bool batch\+Training)
\begin{DoxyCompactList}\small\item\em Train in streaming mode on the given dataset. \end{DoxyCompactList}\end{DoxyCompactItemize}


\subsection{Detailed Description}
This class is a serializable Hoeffding tree model that can hold four different types of Hoeffding trees. 

It is meant to be used by the command-\/line program for Hoeffding trees. 

Definition at line 27 of file hoeffding\+\_\+tree\+\_\+model.\+hpp.



\subsection{Member Typedef Documentation}
\mbox{\label{classmlpack_1_1tree_1_1HoeffdingTreeModel_ad3b4bdb44cb5a8b5f50a9bc6b6580f42}} 
\index{mlpack\+::tree\+::\+Hoeffding\+Tree\+Model@{mlpack\+::tree\+::\+Hoeffding\+Tree\+Model}!Gini\+Binary\+Tree\+Type@{Gini\+Binary\+Tree\+Type}}
\index{Gini\+Binary\+Tree\+Type@{Gini\+Binary\+Tree\+Type}!mlpack\+::tree\+::\+Hoeffding\+Tree\+Model@{mlpack\+::tree\+::\+Hoeffding\+Tree\+Model}}
\subsubsection{Gini\+Binary\+Tree\+Type}
{\footnotesize\ttfamily typedef \textbf{ Hoeffding\+Tree}$<$\textbf{ Gini\+Impurity}, \textbf{ Binary\+Double\+Numeric\+Split}, \textbf{ Hoeffding\+Categorical\+Split}$>$ \textbf{ Gini\+Binary\+Tree\+Type}}



Convenience typedef for G\+I\+N\+I\+\_\+\+B\+I\+N\+A\+RY tree type. 



Definition at line 44 of file hoeffding\+\_\+tree\+\_\+model.\+hpp.

\mbox{\label{classmlpack_1_1tree_1_1HoeffdingTreeModel_ab8f9aaf513769a8edba91d1beec7d2a1}} 
\index{mlpack\+::tree\+::\+Hoeffding\+Tree\+Model@{mlpack\+::tree\+::\+Hoeffding\+Tree\+Model}!Gini\+Hoeffding\+Tree\+Type@{Gini\+Hoeffding\+Tree\+Type}}
\index{Gini\+Hoeffding\+Tree\+Type@{Gini\+Hoeffding\+Tree\+Type}!mlpack\+::tree\+::\+Hoeffding\+Tree\+Model@{mlpack\+::tree\+::\+Hoeffding\+Tree\+Model}}
\subsubsection{Gini\+Hoeffding\+Tree\+Type}
{\footnotesize\ttfamily typedef \textbf{ Hoeffding\+Tree}$<$\textbf{ Gini\+Impurity}, \textbf{ Hoeffding\+Double\+Numeric\+Split}, \textbf{ Hoeffding\+Categorical\+Split}$>$ \textbf{ Gini\+Hoeffding\+Tree\+Type}}



Convenience typedef for G\+I\+N\+I\+\_\+\+H\+O\+E\+F\+F\+D\+I\+NG tree type. 



Definition at line 41 of file hoeffding\+\_\+tree\+\_\+model.\+hpp.

\mbox{\label{classmlpack_1_1tree_1_1HoeffdingTreeModel_a5b70dcb64ba9f89fa1cc2629ab031ff5}} 
\index{mlpack\+::tree\+::\+Hoeffding\+Tree\+Model@{mlpack\+::tree\+::\+Hoeffding\+Tree\+Model}!Info\+Binary\+Tree\+Type@{Info\+Binary\+Tree\+Type}}
\index{Info\+Binary\+Tree\+Type@{Info\+Binary\+Tree\+Type}!mlpack\+::tree\+::\+Hoeffding\+Tree\+Model@{mlpack\+::tree\+::\+Hoeffding\+Tree\+Model}}
\subsubsection{Info\+Binary\+Tree\+Type}
{\footnotesize\ttfamily typedef \textbf{ Hoeffding\+Tree}$<$\textbf{ Information\+Gain}, \textbf{ Binary\+Double\+Numeric\+Split}, \textbf{ Hoeffding\+Categorical\+Split}$>$ \textbf{ Info\+Binary\+Tree\+Type}}



Convenience typedef for I\+N\+F\+O\+\_\+\+B\+I\+N\+A\+RY tree type. 



Definition at line 50 of file hoeffding\+\_\+tree\+\_\+model.\+hpp.

\mbox{\label{classmlpack_1_1tree_1_1HoeffdingTreeModel_a5e3822351ec966d5a7bec39121c2d806}} 
\index{mlpack\+::tree\+::\+Hoeffding\+Tree\+Model@{mlpack\+::tree\+::\+Hoeffding\+Tree\+Model}!Info\+Hoeffding\+Tree\+Type@{Info\+Hoeffding\+Tree\+Type}}
\index{Info\+Hoeffding\+Tree\+Type@{Info\+Hoeffding\+Tree\+Type}!mlpack\+::tree\+::\+Hoeffding\+Tree\+Model@{mlpack\+::tree\+::\+Hoeffding\+Tree\+Model}}
\subsubsection{Info\+Hoeffding\+Tree\+Type}
{\footnotesize\ttfamily typedef \textbf{ Hoeffding\+Tree}$<$\textbf{ Information\+Gain}, \textbf{ Hoeffding\+Double\+Numeric\+Split}, \textbf{ Hoeffding\+Categorical\+Split}$>$ \textbf{ Info\+Hoeffding\+Tree\+Type}}



Convenience typedef for I\+N\+F\+O\+\_\+\+H\+O\+E\+F\+F\+D\+I\+NG tree type. 



Definition at line 47 of file hoeffding\+\_\+tree\+\_\+model.\+hpp.



\subsection{Member Enumeration Documentation}
\mbox{\label{classmlpack_1_1tree_1_1HoeffdingTreeModel_ad31da9b5f4979160b0e600cd47e42b91}} 
\index{mlpack\+::tree\+::\+Hoeffding\+Tree\+Model@{mlpack\+::tree\+::\+Hoeffding\+Tree\+Model}!Tree\+Type@{Tree\+Type}}
\index{Tree\+Type@{Tree\+Type}!mlpack\+::tree\+::\+Hoeffding\+Tree\+Model@{mlpack\+::tree\+::\+Hoeffding\+Tree\+Model}}
\subsubsection{Tree\+Type}
{\footnotesize\ttfamily enum \textbf{ Tree\+Type}}



This enumerates the four types of trees we can hold. 

\begin{DoxyEnumFields}{Enumerator}
\raisebox{\heightof{T}}[0pt][0pt]{\index{G\+I\+N\+I\+\_\+\+H\+O\+E\+F\+F\+D\+I\+NG@{G\+I\+N\+I\+\_\+\+H\+O\+E\+F\+F\+D\+I\+NG}!mlpack\+::tree\+::\+Hoeffding\+Tree\+Model@{mlpack\+::tree\+::\+Hoeffding\+Tree\+Model}}\index{mlpack\+::tree\+::\+Hoeffding\+Tree\+Model@{mlpack\+::tree\+::\+Hoeffding\+Tree\+Model}!G\+I\+N\+I\+\_\+\+H\+O\+E\+F\+F\+D\+I\+NG@{G\+I\+N\+I\+\_\+\+H\+O\+E\+F\+F\+D\+I\+NG}}}\mbox{\label{classmlpack_1_1tree_1_1HoeffdingTreeModel_ad31da9b5f4979160b0e600cd47e42b91aaebbe41129ff1d2535b5c964b75bc657}} 
G\+I\+N\+I\+\_\+\+H\+O\+E\+F\+F\+D\+I\+NG&\\
\hline

\raisebox{\heightof{T}}[0pt][0pt]{\index{G\+I\+N\+I\+\_\+\+B\+I\+N\+A\+RY@{G\+I\+N\+I\+\_\+\+B\+I\+N\+A\+RY}!mlpack\+::tree\+::\+Hoeffding\+Tree\+Model@{mlpack\+::tree\+::\+Hoeffding\+Tree\+Model}}\index{mlpack\+::tree\+::\+Hoeffding\+Tree\+Model@{mlpack\+::tree\+::\+Hoeffding\+Tree\+Model}!G\+I\+N\+I\+\_\+\+B\+I\+N\+A\+RY@{G\+I\+N\+I\+\_\+\+B\+I\+N\+A\+RY}}}\mbox{\label{classmlpack_1_1tree_1_1HoeffdingTreeModel_ad31da9b5f4979160b0e600cd47e42b91a524e864e4cd56a5ea98acaa0df5d318d}} 
G\+I\+N\+I\+\_\+\+B\+I\+N\+A\+RY&\\
\hline

\raisebox{\heightof{T}}[0pt][0pt]{\index{I\+N\+F\+O\+\_\+\+H\+O\+E\+F\+F\+D\+I\+NG@{I\+N\+F\+O\+\_\+\+H\+O\+E\+F\+F\+D\+I\+NG}!mlpack\+::tree\+::\+Hoeffding\+Tree\+Model@{mlpack\+::tree\+::\+Hoeffding\+Tree\+Model}}\index{mlpack\+::tree\+::\+Hoeffding\+Tree\+Model@{mlpack\+::tree\+::\+Hoeffding\+Tree\+Model}!I\+N\+F\+O\+\_\+\+H\+O\+E\+F\+F\+D\+I\+NG@{I\+N\+F\+O\+\_\+\+H\+O\+E\+F\+F\+D\+I\+NG}}}\mbox{\label{classmlpack_1_1tree_1_1HoeffdingTreeModel_ad31da9b5f4979160b0e600cd47e42b91ab95f780a9d428d76880775193f9d0f2d}} 
I\+N\+F\+O\+\_\+\+H\+O\+E\+F\+F\+D\+I\+NG&\\
\hline

\raisebox{\heightof{T}}[0pt][0pt]{\index{I\+N\+F\+O\+\_\+\+B\+I\+N\+A\+RY@{I\+N\+F\+O\+\_\+\+B\+I\+N\+A\+RY}!mlpack\+::tree\+::\+Hoeffding\+Tree\+Model@{mlpack\+::tree\+::\+Hoeffding\+Tree\+Model}}\index{mlpack\+::tree\+::\+Hoeffding\+Tree\+Model@{mlpack\+::tree\+::\+Hoeffding\+Tree\+Model}!I\+N\+F\+O\+\_\+\+B\+I\+N\+A\+RY@{I\+N\+F\+O\+\_\+\+B\+I\+N\+A\+RY}}}\mbox{\label{classmlpack_1_1tree_1_1HoeffdingTreeModel_ad31da9b5f4979160b0e600cd47e42b91a667a98036d4afd2297eaa5fee8bb4358}} 
I\+N\+F\+O\+\_\+\+B\+I\+N\+A\+RY&\\
\hline

\end{DoxyEnumFields}


Definition at line 31 of file hoeffding\+\_\+tree\+\_\+model.\+hpp.



\subsection{Constructor \& Destructor Documentation}
\mbox{\label{classmlpack_1_1tree_1_1HoeffdingTreeModel_a476333dcafeb08e3ede7a3a0505ed6d2}} 
\index{mlpack\+::tree\+::\+Hoeffding\+Tree\+Model@{mlpack\+::tree\+::\+Hoeffding\+Tree\+Model}!Hoeffding\+Tree\+Model@{Hoeffding\+Tree\+Model}}
\index{Hoeffding\+Tree\+Model@{Hoeffding\+Tree\+Model}!mlpack\+::tree\+::\+Hoeffding\+Tree\+Model@{mlpack\+::tree\+::\+Hoeffding\+Tree\+Model}}
\subsubsection{Hoeffding\+Tree\+Model()\hspace{0.1cm}{\footnotesize\ttfamily [1/3]}}
{\footnotesize\ttfamily \textbf{ Hoeffding\+Tree\+Model} (\begin{DoxyParamCaption}\item[{const \textbf{ Tree\+Type} \&}]{type = {\ttfamily \textbf{ G\+I\+N\+I\+\_\+\+H\+O\+E\+F\+F\+D\+I\+NG}} }\end{DoxyParamCaption})}



Construct the Hoeffding tree model, but don\textquotesingle{}t initialize any tree. 

Be sure to call \doxyref{Train()}{p.}{classmlpack_1_1tree_1_1HoeffdingTreeModel_ad6b64552727317fd93b5b5c087fee439} before doing anything with the model!


\begin{DoxyParams}{Parameters}
{\em type} & Type of tree that will be used. \\
\hline
\end{DoxyParams}
\mbox{\label{classmlpack_1_1tree_1_1HoeffdingTreeModel_a961c0476745562f700098f61fbf16299}} 
\index{mlpack\+::tree\+::\+Hoeffding\+Tree\+Model@{mlpack\+::tree\+::\+Hoeffding\+Tree\+Model}!Hoeffding\+Tree\+Model@{Hoeffding\+Tree\+Model}}
\index{Hoeffding\+Tree\+Model@{Hoeffding\+Tree\+Model}!mlpack\+::tree\+::\+Hoeffding\+Tree\+Model@{mlpack\+::tree\+::\+Hoeffding\+Tree\+Model}}
\subsubsection{Hoeffding\+Tree\+Model()\hspace{0.1cm}{\footnotesize\ttfamily [2/3]}}
{\footnotesize\ttfamily \textbf{ Hoeffding\+Tree\+Model} (\begin{DoxyParamCaption}\item[{const \textbf{ Hoeffding\+Tree\+Model} \&}]{other }\end{DoxyParamCaption})}



Copy the Hoeffding tree model from the given other model. 


\begin{DoxyParams}{Parameters}
{\em other} & Hoeffding tree model to copy. \\
\hline
\end{DoxyParams}
\mbox{\label{classmlpack_1_1tree_1_1HoeffdingTreeModel_a1719668b2f0b4ece9f36f77eaad5029f}} 
\index{mlpack\+::tree\+::\+Hoeffding\+Tree\+Model@{mlpack\+::tree\+::\+Hoeffding\+Tree\+Model}!Hoeffding\+Tree\+Model@{Hoeffding\+Tree\+Model}}
\index{Hoeffding\+Tree\+Model@{Hoeffding\+Tree\+Model}!mlpack\+::tree\+::\+Hoeffding\+Tree\+Model@{mlpack\+::tree\+::\+Hoeffding\+Tree\+Model}}
\subsubsection{Hoeffding\+Tree\+Model()\hspace{0.1cm}{\footnotesize\ttfamily [3/3]}}
{\footnotesize\ttfamily \textbf{ Hoeffding\+Tree\+Model} (\begin{DoxyParamCaption}\item[{\textbf{ Hoeffding\+Tree\+Model} \&\&}]{other }\end{DoxyParamCaption})}



Move the Hoeffding tree model from the given other model. 


\begin{DoxyParams}{Parameters}
{\em other} & Hoeffding tree model to move. \\
\hline
\end{DoxyParams}
\mbox{\label{classmlpack_1_1tree_1_1HoeffdingTreeModel_ac2dec599c0f31df6113eddb2cf1cd750}} 
\index{mlpack\+::tree\+::\+Hoeffding\+Tree\+Model@{mlpack\+::tree\+::\+Hoeffding\+Tree\+Model}!````~Hoeffding\+Tree\+Model@{$\sim$\+Hoeffding\+Tree\+Model}}
\index{````~Hoeffding\+Tree\+Model@{$\sim$\+Hoeffding\+Tree\+Model}!mlpack\+::tree\+::\+Hoeffding\+Tree\+Model@{mlpack\+::tree\+::\+Hoeffding\+Tree\+Model}}
\subsubsection{$\sim$\+Hoeffding\+Tree\+Model()}
{\footnotesize\ttfamily $\sim$\textbf{ Hoeffding\+Tree\+Model} (\begin{DoxyParamCaption}{ }\end{DoxyParamCaption})}



Clean up the given model. 



\subsection{Member Function Documentation}
\mbox{\label{classmlpack_1_1tree_1_1HoeffdingTreeModel_a290721d98ef6f720897b46207248b8a4}} 
\index{mlpack\+::tree\+::\+Hoeffding\+Tree\+Model@{mlpack\+::tree\+::\+Hoeffding\+Tree\+Model}!Build\+Model@{Build\+Model}}
\index{Build\+Model@{Build\+Model}!mlpack\+::tree\+::\+Hoeffding\+Tree\+Model@{mlpack\+::tree\+::\+Hoeffding\+Tree\+Model}}
\subsubsection{Build\+Model()}
{\footnotesize\ttfamily void Build\+Model (\begin{DoxyParamCaption}\item[{const arma\+::mat \&}]{dataset,  }\item[{const \textbf{ data\+::\+Dataset\+Info} \&}]{dataset\+Info,  }\item[{const arma\+::\+Row$<$ size\+\_\+t $>$ \&}]{labels,  }\item[{const size\+\_\+t}]{num\+Classes,  }\item[{const bool}]{batch\+Training,  }\item[{const double}]{success\+Probability,  }\item[{const size\+\_\+t}]{max\+Samples,  }\item[{const size\+\_\+t}]{check\+Interval,  }\item[{const size\+\_\+t}]{min\+Samples,  }\item[{const size\+\_\+t}]{bins,  }\item[{const size\+\_\+t}]{observations\+Before\+Binning }\end{DoxyParamCaption})}



Train the model on the given dataset with the given labels. 

This method just passes to the appropriate Hoeffding\+Tree$<$...$>$ constructor, and will train with one pass over the dataset.


\begin{DoxyParams}{Parameters}
{\em dataset} & Dataset to train on. \\
\hline
{\em dataset\+Info} & Information about dimensions of dataset. \\
\hline
{\em labels} & Labels for training set. \\
\hline
{\em num\+Classes} & Number of classes in dataset. \\
\hline
{\em batch\+Training} & Whether or not to train in batch. \\
\hline
{\em success\+Probability} & Probability of success required in Hoeffding bound before a split can happen. \\
\hline
{\em max\+Samples} & Maximum number of samples before a split is forced. \\
\hline
{\em check\+Interval} & Number of samples required before each split check. \\
\hline
{\em min\+Samples} & If the node has seen this many points or fewer, no split will be allowed. \\
\hline
{\em bins} & Number of bins, for Hoeffding numeric split. \\
\hline
{\em observations\+Before\+Binning} & Number of observations before binning, for Hoeffding numeric split. \\
\hline
\end{DoxyParams}
\mbox{\label{classmlpack_1_1tree_1_1HoeffdingTreeModel_a55240ba5fc5c909ee2e51c21a60a3462}} 
\index{mlpack\+::tree\+::\+Hoeffding\+Tree\+Model@{mlpack\+::tree\+::\+Hoeffding\+Tree\+Model}!Classify@{Classify}}
\index{Classify@{Classify}!mlpack\+::tree\+::\+Hoeffding\+Tree\+Model@{mlpack\+::tree\+::\+Hoeffding\+Tree\+Model}}
\subsubsection{Classify()\hspace{0.1cm}{\footnotesize\ttfamily [1/2]}}
{\footnotesize\ttfamily void Classify (\begin{DoxyParamCaption}\item[{const arma\+::mat \&}]{dataset,  }\item[{arma\+::\+Row$<$ size\+\_\+t $>$ \&}]{predictions }\end{DoxyParamCaption}) const}



Using the model, classify the given test points. 

Be sure that \doxyref{Build\+Model()}{p.}{classmlpack_1_1tree_1_1HoeffdingTreeModel_a290721d98ef6f720897b46207248b8a4} has been called first!


\begin{DoxyParams}{Parameters}
{\em dataset} & Dataset to classify. \\
\hline
{\em predictions} & Vector to store predictions for test points in. \\
\hline
\end{DoxyParams}
\mbox{\label{classmlpack_1_1tree_1_1HoeffdingTreeModel_a94d6a9985b89e0ec6fe802a43b62b468}} 
\index{mlpack\+::tree\+::\+Hoeffding\+Tree\+Model@{mlpack\+::tree\+::\+Hoeffding\+Tree\+Model}!Classify@{Classify}}
\index{Classify@{Classify}!mlpack\+::tree\+::\+Hoeffding\+Tree\+Model@{mlpack\+::tree\+::\+Hoeffding\+Tree\+Model}}
\subsubsection{Classify()\hspace{0.1cm}{\footnotesize\ttfamily [2/2]}}
{\footnotesize\ttfamily void Classify (\begin{DoxyParamCaption}\item[{const arma\+::mat \&}]{dataset,  }\item[{arma\+::\+Row$<$ size\+\_\+t $>$ \&}]{predictions,  }\item[{arma\+::rowvec \&}]{probabilities }\end{DoxyParamCaption}) const}



Using the model, classify the given test points, returning class probabilities. 


\begin{DoxyParams}{Parameters}
{\em dataset} & Dataset to classify. \\
\hline
{\em predictions} & Vector to store predictions for test points in. \\
\hline
{\em probabilities} & Vector to store probabilities for test points in. \\
\hline
\end{DoxyParams}
\mbox{\label{classmlpack_1_1tree_1_1HoeffdingTreeModel_a5745ee58508df730d6557dc103ede353}} 
\index{mlpack\+::tree\+::\+Hoeffding\+Tree\+Model@{mlpack\+::tree\+::\+Hoeffding\+Tree\+Model}!Num\+Nodes@{Num\+Nodes}}
\index{Num\+Nodes@{Num\+Nodes}!mlpack\+::tree\+::\+Hoeffding\+Tree\+Model@{mlpack\+::tree\+::\+Hoeffding\+Tree\+Model}}
\subsubsection{Num\+Nodes()}
{\footnotesize\ttfamily size\+\_\+t Num\+Nodes (\begin{DoxyParamCaption}{ }\end{DoxyParamCaption}) const}



Get the number of nodes in the tree. 

\mbox{\label{classmlpack_1_1tree_1_1HoeffdingTreeModel_acda6fbc886f946152fb00e868613be15}} 
\index{mlpack\+::tree\+::\+Hoeffding\+Tree\+Model@{mlpack\+::tree\+::\+Hoeffding\+Tree\+Model}!operator=@{operator=}}
\index{operator=@{operator=}!mlpack\+::tree\+::\+Hoeffding\+Tree\+Model@{mlpack\+::tree\+::\+Hoeffding\+Tree\+Model}}
\subsubsection{operator=()\hspace{0.1cm}{\footnotesize\ttfamily [1/2]}}
{\footnotesize\ttfamily \textbf{ Hoeffding\+Tree\+Model}\& operator= (\begin{DoxyParamCaption}\item[{const \textbf{ Hoeffding\+Tree\+Model} \&}]{other }\end{DoxyParamCaption})}



Copy the Hoeffding tree model from the given other model. 


\begin{DoxyParams}{Parameters}
{\em other} & Hoeffding tree model to copy. \\
\hline
\end{DoxyParams}
\mbox{\label{classmlpack_1_1tree_1_1HoeffdingTreeModel_a057776ef665edf24ca98899f8b648bf3}} 
\index{mlpack\+::tree\+::\+Hoeffding\+Tree\+Model@{mlpack\+::tree\+::\+Hoeffding\+Tree\+Model}!operator=@{operator=}}
\index{operator=@{operator=}!mlpack\+::tree\+::\+Hoeffding\+Tree\+Model@{mlpack\+::tree\+::\+Hoeffding\+Tree\+Model}}
\subsubsection{operator=()\hspace{0.1cm}{\footnotesize\ttfamily [2/2]}}
{\footnotesize\ttfamily \textbf{ Hoeffding\+Tree\+Model}\& operator= (\begin{DoxyParamCaption}\item[{\textbf{ Hoeffding\+Tree\+Model} \&\&}]{other }\end{DoxyParamCaption})}



Move the Hoeffding tree model from the given other model. 


\begin{DoxyParams}{Parameters}
{\em other} & Hoeffding tree model to move. \\
\hline
\end{DoxyParams}
\mbox{\label{classmlpack_1_1tree_1_1HoeffdingTreeModel_af0dd9205158ccf7bcfcd8ff81f79c927}} 
\index{mlpack\+::tree\+::\+Hoeffding\+Tree\+Model@{mlpack\+::tree\+::\+Hoeffding\+Tree\+Model}!serialize@{serialize}}
\index{serialize@{serialize}!mlpack\+::tree\+::\+Hoeffding\+Tree\+Model@{mlpack\+::tree\+::\+Hoeffding\+Tree\+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 169 of file hoeffding\+\_\+tree\+\_\+model.\+hpp.



References Hoeffding\+Tree\+Model\+::\+G\+I\+N\+I\+\_\+\+B\+I\+N\+A\+RY, Hoeffding\+Tree\+Model\+::\+G\+I\+N\+I\+\_\+\+H\+O\+E\+F\+F\+D\+I\+NG, Hoeffding\+Tree\+Model\+::\+I\+N\+F\+O\+\_\+\+B\+I\+N\+A\+RY, and Hoeffding\+Tree\+Model\+::\+I\+N\+F\+O\+\_\+\+H\+O\+E\+F\+F\+D\+I\+NG.

\mbox{\label{classmlpack_1_1tree_1_1HoeffdingTreeModel_ad6b64552727317fd93b5b5c087fee439}} 
\index{mlpack\+::tree\+::\+Hoeffding\+Tree\+Model@{mlpack\+::tree\+::\+Hoeffding\+Tree\+Model}!Train@{Train}}
\index{Train@{Train}!mlpack\+::tree\+::\+Hoeffding\+Tree\+Model@{mlpack\+::tree\+::\+Hoeffding\+Tree\+Model}}
\subsubsection{Train()}
{\footnotesize\ttfamily void Train (\begin{DoxyParamCaption}\item[{const arma\+::mat \&}]{dataset,  }\item[{const arma\+::\+Row$<$ size\+\_\+t $>$ \&}]{labels,  }\item[{const bool}]{batch\+Training }\end{DoxyParamCaption})}



Train in streaming mode on the given dataset. 

This takes one pass. Be sure that \doxyref{Build\+Model()}{p.}{classmlpack_1_1tree_1_1HoeffdingTreeModel_a290721d98ef6f720897b46207248b8a4} has been called first!


\begin{DoxyParams}{Parameters}
{\em dataset} & Dataset to train on. \\
\hline
{\em labels} & Labels for training set. \\
\hline
{\em batch\+Training} & Whether or not to train in batch. \\
\hline
\end{DoxyParams}


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.\+2/src/mlpack/methods/hoeffding\+\_\+trees/\textbf{ hoeffding\+\_\+tree\+\_\+model.\+hpp}\end{DoxyCompactItemize}
