\section{mlpack\+:\+:bindings\+:\+:python Namespace Reference}
\label{namespacemlpack_1_1bindings_1_1python}\index{mlpack\+::bindings\+::python@{mlpack\+::bindings\+::python}}
\subsection*{Classes}
\begin{DoxyCompactItemize}
\item 
class \textbf{ Py\+Option}
\begin{DoxyCompactList}\small\item\em The Python option class. \end{DoxyCompactList}\end{DoxyCompactItemize}
\subsection*{Functions}
\begin{DoxyCompactItemize}
\item 
{\footnotesize template$<$typename T $>$ }\\void \textbf{ Default\+Param} (const \textbf{ util\+::\+Param\+Data} \&data, const void $\ast$, void $\ast$output)
\begin{DoxyCompactList}\small\item\em Return the default value of an option. \end{DoxyCompactList}\item 
{\footnotesize template$<$typename T $>$ }\\std\+::string \textbf{ Default\+Param\+Impl} (const \textbf{ util\+::\+Param\+Data} \&data, const typename boost\+::disable\+\_\+if$<$ arma\+::is\+\_\+arma\+\_\+type$<$ T $>$$>$\+::type $\ast$=0, const typename boost\+::disable\+\_\+if$<$ \textbf{ util\+::\+Is\+Std\+Vector}$<$ T $>$$>$\+::type $\ast$=0, const typename boost\+::disable\+\_\+if$<$ \textbf{ data\+::\+Has\+Serialize}$<$ T $>$$>$\+::type $\ast$=0, const typename boost\+::disable\+\_\+if$<$ std\+::is\+\_\+same$<$ T, std\+::string $>$$>$\+::type $\ast$=0, const typename boost\+::disable\+\_\+if$<$ std\+::is\+\_\+same$<$ T, std\+::tuple$<$ \textbf{ mlpack\+::data\+::\+Dataset\+Info}, arma\+::mat $>$$>$$>$\+::type $\ast$=0)
\begin{DoxyCompactList}\small\item\em Return the default value of an option. \end{DoxyCompactList}\item 
{\footnotesize template$<$typename T $>$ }\\std\+::string \textbf{ Default\+Param\+Impl} (const \textbf{ util\+::\+Param\+Data} \&data, const typename boost\+::enable\+\_\+if$<$ \textbf{ util\+::\+Is\+Std\+Vector}$<$ T $>$$>$\+::type $\ast$=0)
\begin{DoxyCompactList}\small\item\em Return the default value of a vector option. \end{DoxyCompactList}\item 
{\footnotesize template$<$typename T $>$ }\\std\+::string \textbf{ Default\+Param\+Impl} (const \textbf{ util\+::\+Param\+Data} \&data, const typename boost\+::enable\+\_\+if$<$ std\+::is\+\_\+same$<$ T, std\+::string $>$$>$\+::type $\ast$=0)
\begin{DoxyCompactList}\small\item\em Return the default value of a string option. \end{DoxyCompactList}\item 
{\footnotesize template$<$typename T $>$ }\\std\+::string \textbf{ Default\+Param\+Impl} (const \textbf{ util\+::\+Param\+Data} \&data, const typename boost\+::enable\+\_\+if\+\_\+c$<$ arma\+::is\+\_\+arma\+\_\+type$<$ T $>$\+::value$\vert$$\vert$std\+::is\+\_\+same$<$ T, std\+::tuple$<$ \textbf{ mlpack\+::data\+::\+Dataset\+Info}, arma\+::mat $>$$>$\+::value $>$\+::type $\ast$=0)
\begin{DoxyCompactList}\small\item\em Return the default value of a matrix option, a tuple option, a serializable option, or a string option (this returns the default filename, or \textquotesingle{}\textquotesingle{} if the default is no file). \end{DoxyCompactList}\item 
{\footnotesize template$<$typename T $>$ }\\std\+::string \textbf{ Default\+Param\+Impl} (const \textbf{ util\+::\+Param\+Data} \&data, const typename boost\+::disable\+\_\+if$<$ arma\+::is\+\_\+arma\+\_\+type$<$ T $>$$>$\+::type $\ast$=0, const typename boost\+::enable\+\_\+if$<$ \textbf{ data\+::\+Has\+Serialize}$<$ T $>$$>$\+::type $\ast$=0)
\begin{DoxyCompactList}\small\item\em Return the default value of a model option (this returns the default filename, or \textquotesingle{}\textquotesingle{} if the default is no file). \end{DoxyCompactList}\item 
{\footnotesize template$<$typename T $>$ }\\std\+::string \textbf{ Get\+Arma\+Type} ()
\begin{DoxyCompactList}\small\item\em This is used for arma\+::\+Mat$<$$>$ types; it will return \char`\"{}mat\char`\"{} for matrices, \char`\"{}row\char`\"{} for row vectors, and \char`\"{}col\char`\"{} for column vectors. \end{DoxyCompactList}\item 
std\+::string \textbf{ Get\+Binding\+Name} (const std\+::string \&binding\+Name)
\begin{DoxyCompactList}\small\item\em Given the name of a binding, print its Python name. \end{DoxyCompactList}\item 
{\footnotesize template$<$typename T $>$ }\\std\+::string \textbf{ Get\+Cython\+Type} (const \textbf{ util\+::\+Param\+Data} \&, const typename boost\+::disable\+\_\+if$<$ \textbf{ util\+::\+Is\+Std\+Vector}$<$ T $>$$>$\+::type $\ast$=0, const typename boost\+::disable\+\_\+if$<$ \textbf{ data\+::\+Has\+Serialize}$<$ T $>$$>$\+::type $\ast$=0, const typename boost\+::disable\+\_\+if$<$ arma\+::is\+\_\+arma\+\_\+type$<$ T $>$$>$\+::type $\ast$=0)
\item 
{\footnotesize template$<$typename T $>$ }\\std\+::string \textbf{ Get\+Cython\+Type} (const \textbf{ util\+::\+Param\+Data} \&d, const typename boost\+::enable\+\_\+if$<$ \textbf{ util\+::\+Is\+Std\+Vector}$<$ T $>$$>$\+::type $\ast$=0)
\item 
{\footnotesize template$<$typename T $>$ }\\std\+::string \textbf{ Get\+Cython\+Type} (const \textbf{ util\+::\+Param\+Data} \&d, const typename boost\+::enable\+\_\+if$<$ arma\+::is\+\_\+arma\+\_\+type$<$ T $>$$>$\+::type $\ast$=0)
\item 
{\footnotesize template$<$typename T $>$ }\\std\+::string \textbf{ Get\+Cython\+Type} (const \textbf{ util\+::\+Param\+Data} \&d, const typename boost\+::disable\+\_\+if$<$ arma\+::is\+\_\+arma\+\_\+type$<$ T $>$$>$\+::type $\ast$=0, const typename boost\+::enable\+\_\+if$<$ \textbf{ data\+::\+Has\+Serialize}$<$ T $>$$>$\+::type $\ast$=0)
\item 
{\footnotesize template$<$$>$ }\\std\+::string \textbf{ Get\+Cython\+Type$<$ bool $>$} (const \textbf{ util\+::\+Param\+Data} \&, const typename boost\+::disable\+\_\+if$<$ \textbf{ util\+::\+Is\+Std\+Vector}$<$ bool $>$$>$\+::type $\ast$, const typename boost\+::disable\+\_\+if$<$ \textbf{ data\+::\+Has\+Serialize}$<$ bool $>$$>$\+::type $\ast$, const typename boost\+::disable\+\_\+if$<$ arma\+::is\+\_\+arma\+\_\+type$<$ bool $>$$>$\+::type $\ast$)
\item 
{\footnotesize template$<$$>$ }\\std\+::string \textbf{ Get\+Cython\+Type$<$ double $>$} (const \textbf{ util\+::\+Param\+Data} \&, const typename boost\+::disable\+\_\+if$<$ \textbf{ util\+::\+Is\+Std\+Vector}$<$ double $>$$>$\+::type $\ast$, const typename boost\+::disable\+\_\+if$<$ \textbf{ data\+::\+Has\+Serialize}$<$ double $>$$>$\+::type $\ast$, const typename boost\+::disable\+\_\+if$<$ arma\+::is\+\_\+arma\+\_\+type$<$ double $>$$>$\+::type $\ast$)
\item 
{\footnotesize template$<$$>$ }\\std\+::string \textbf{ Get\+Cython\+Type$<$ int $>$} (const \textbf{ util\+::\+Param\+Data} \&, const typename boost\+::disable\+\_\+if$<$ \textbf{ util\+::\+Is\+Std\+Vector}$<$ int $>$$>$\+::type $\ast$, const typename boost\+::disable\+\_\+if$<$ \textbf{ data\+::\+Has\+Serialize}$<$ int $>$$>$\+::type $\ast$, const typename boost\+::disable\+\_\+if$<$ arma\+::is\+\_\+arma\+\_\+type$<$ int $>$$>$\+::type $\ast$)
\item 
{\footnotesize template$<$$>$ }\\std\+::string \textbf{ Get\+Cython\+Type$<$ size\+\_\+t $>$} (const \textbf{ util\+::\+Param\+Data} \&, const typename boost\+::disable\+\_\+if$<$ \textbf{ util\+::\+Is\+Std\+Vector}$<$ size\+\_\+t $>$$>$\+::type $\ast$, const typename boost\+::disable\+\_\+if$<$ \textbf{ data\+::\+Has\+Serialize}$<$ size\+\_\+t $>$$>$\+::type $\ast$, const typename boost\+::disable\+\_\+if$<$ arma\+::is\+\_\+arma\+\_\+type$<$ size\+\_\+t $>$$>$\+::type $\ast$)
\item 
{\footnotesize template$<$$>$ }\\std\+::string \textbf{ Get\+Cython\+Type$<$ std\+::string $>$} (const \textbf{ util\+::\+Param\+Data} \&, const typename boost\+::disable\+\_\+if$<$ \textbf{ util\+::\+Is\+Std\+Vector}$<$ std\+::string $>$$>$\+::type $\ast$, const typename boost\+::disable\+\_\+if$<$ \textbf{ data\+::\+Has\+Serialize}$<$ std\+::string $>$$>$\+::type $\ast$, const typename boost\+::disable\+\_\+if$<$ arma\+::is\+\_\+arma\+\_\+type$<$ std\+::string $>$$>$\+::type $\ast$)
\item 
{\footnotesize template$<$typename T $>$ }\\std\+::string \textbf{ Get\+Numpy\+Type} ()
\item 
{\footnotesize template$<$$>$ }\\std\+::string \textbf{ Get\+Numpy\+Type$<$ double $>$} ()
\item 
{\footnotesize template$<$$>$ }\\std\+::string \textbf{ Get\+Numpy\+Type$<$ size\+\_\+t $>$} ()
\item 
{\footnotesize template$<$typename T $>$ }\\std\+::string \textbf{ Get\+Numpy\+Type\+Char} ()
\item 
{\footnotesize template$<$$>$ }\\std\+::string \textbf{ Get\+Numpy\+Type\+Char$<$ arma\+::\+Col$<$ size\+\_\+t $>$ $>$} ()
\item 
{\footnotesize template$<$$>$ }\\std\+::string \textbf{ Get\+Numpy\+Type\+Char$<$ arma\+::mat $>$} ()
\item 
{\footnotesize template$<$$>$ }\\std\+::string \textbf{ Get\+Numpy\+Type\+Char$<$ arma\+::\+Mat$<$ size\+\_\+t $>$ $>$} ()
\item 
{\footnotesize template$<$$>$ }\\std\+::string \textbf{ Get\+Numpy\+Type\+Char$<$ arma\+::\+Row$<$ size\+\_\+t $>$ $>$} ()
\item 
{\footnotesize template$<$$>$ }\\std\+::string \textbf{ Get\+Numpy\+Type\+Char$<$ arma\+::rowvec $>$} ()
\item 
{\footnotesize template$<$$>$ }\\std\+::string \textbf{ Get\+Numpy\+Type\+Char$<$ arma\+::vec $>$} ()
\item 
{\footnotesize template$<$typename T $>$ }\\void \textbf{ Get\+Param} (const \textbf{ util\+::\+Param\+Data} \&d, const void $\ast$, void $\ast$output)
\begin{DoxyCompactList}\small\item\em All Python binding types are exactly what is held in the Param\+Data, so no special handling is necessary. \end{DoxyCompactList}\item 
{\footnotesize template$<$typename T $>$ }\\std\+::string \textbf{ Get\+Printable\+Param} (const \textbf{ util\+::\+Param\+Data} \&data, const typename boost\+::disable\+\_\+if$<$ arma\+::is\+\_\+arma\+\_\+type$<$ T $>$$>$\+::type $\ast$=0, const typename boost\+::disable\+\_\+if$<$ \textbf{ util\+::\+Is\+Std\+Vector}$<$ T $>$$>$\+::type $\ast$=0, const typename boost\+::disable\+\_\+if$<$ \textbf{ data\+::\+Has\+Serialize}$<$ T $>$$>$\+::type $\ast$=0, const typename boost\+::disable\+\_\+if$<$ std\+::is\+\_\+same$<$ T, std\+::tuple$<$ \textbf{ data\+::\+Dataset\+Info}, arma\+::mat $>$$>$$>$\+::type $\ast$=0)
\begin{DoxyCompactList}\small\item\em Print an option of a simple type. \end{DoxyCompactList}\item 
{\footnotesize template$<$typename T $>$ }\\std\+::string \textbf{ Get\+Printable\+Param} (const \textbf{ util\+::\+Param\+Data} \&data, const typename boost\+::enable\+\_\+if$<$ \textbf{ util\+::\+Is\+Std\+Vector}$<$ T $>$$>$\+::type $\ast$=0)
\begin{DoxyCompactList}\small\item\em Print a vector option, with spaces between it. \end{DoxyCompactList}\item 
{\footnotesize template$<$typename T $>$ }\\std\+::string \textbf{ Get\+Printable\+Param} (const \textbf{ util\+::\+Param\+Data} \&data, const typename boost\+::enable\+\_\+if$<$ arma\+::is\+\_\+arma\+\_\+type$<$ T $>$$>$\+::type $\ast$=0)
\begin{DoxyCompactList}\small\item\em Print a matrix option (this prints its size). \end{DoxyCompactList}\item 
{\footnotesize template$<$typename T $>$ }\\std\+::string \textbf{ Get\+Printable\+Param} (const \textbf{ util\+::\+Param\+Data} \&data, const typename boost\+::disable\+\_\+if$<$ arma\+::is\+\_\+arma\+\_\+type$<$ T $>$$>$\+::type $\ast$=0, const typename boost\+::enable\+\_\+if$<$ \textbf{ data\+::\+Has\+Serialize}$<$ T $>$$>$\+::type $\ast$=0)
\begin{DoxyCompactList}\small\item\em Print a serializable class option (this prints the class name). \end{DoxyCompactList}\item 
{\footnotesize template$<$typename T $>$ }\\std\+::string \textbf{ Get\+Printable\+Param} (const \textbf{ util\+::\+Param\+Data} \&data, const typename boost\+::enable\+\_\+if$<$ std\+::is\+\_\+same$<$ T, std\+::tuple$<$ \textbf{ data\+::\+Dataset\+Info}, arma\+::mat $>$$>$$>$\+::type $\ast$=0)
\begin{DoxyCompactList}\small\item\em Print a combination Dataset\+Info/matrix parameter. \end{DoxyCompactList}\item 
{\footnotesize template$<$typename T $>$ }\\void \textbf{ Get\+Printable\+Param} (const \textbf{ util\+::\+Param\+Data} \&data, const void $\ast$, void $\ast$output)
\begin{DoxyCompactList}\small\item\em Print an option into a std\+::string. \end{DoxyCompactList}\item 
{\footnotesize template$<$typename T $>$ }\\std\+::string \textbf{ Get\+Printable\+Type} (const \textbf{ util\+::\+Param\+Data} \&, const typename boost\+::disable\+\_\+if$<$ \textbf{ util\+::\+Is\+Std\+Vector}$<$ T $>$$>$\+::type $\ast$=0, const typename boost\+::disable\+\_\+if$<$ \textbf{ data\+::\+Has\+Serialize}$<$ T $>$$>$\+::type $\ast$=0, const typename boost\+::disable\+\_\+if$<$ arma\+::is\+\_\+arma\+\_\+type$<$ T $>$$>$\+::type $\ast$=0, const typename boost\+::disable\+\_\+if$<$ std\+::is\+\_\+same$<$ T, std\+::tuple$<$ \textbf{ data\+::\+Dataset\+Info}, arma\+::mat $>$$>$$>$\+::type $\ast$=0)
\item 
{\footnotesize template$<$typename T $>$ }\\std\+::string \textbf{ Get\+Printable\+Type} (const \textbf{ util\+::\+Param\+Data} \&d, const typename boost\+::enable\+\_\+if$<$ \textbf{ util\+::\+Is\+Std\+Vector}$<$ T $>$$>$\+::type $\ast$=0, const typename boost\+::disable\+\_\+if$<$ std\+::is\+\_\+same$<$ T, std\+::tuple$<$ \textbf{ data\+::\+Dataset\+Info}, arma\+::mat $>$$>$$>$\+::type $\ast$=0)
\item 
{\footnotesize template$<$typename T $>$ }\\std\+::string \textbf{ Get\+Printable\+Type} (const \textbf{ util\+::\+Param\+Data} \&, const typename boost\+::enable\+\_\+if$<$ arma\+::is\+\_\+arma\+\_\+type$<$ T $>$$>$\+::type $\ast$=0, const typename boost\+::disable\+\_\+if$<$ std\+::is\+\_\+same$<$ T, std\+::tuple$<$ \textbf{ data\+::\+Dataset\+Info}, arma\+::mat $>$$>$$>$\+::type $\ast$=0)
\item 
{\footnotesize template$<$typename T $>$ }\\std\+::string \textbf{ Get\+Printable\+Type} (const \textbf{ util\+::\+Param\+Data} \&, const typename boost\+::enable\+\_\+if$<$ std\+::is\+\_\+same$<$ T, std\+::tuple$<$ \textbf{ data\+::\+Dataset\+Info}, arma\+::mat $>$$>$$>$\+::type $\ast$=0)
\item 
{\footnotesize template$<$typename T $>$ }\\std\+::string \textbf{ Get\+Printable\+Type} (const \textbf{ util\+::\+Param\+Data} \&d, const typename boost\+::disable\+\_\+if$<$ arma\+::is\+\_\+arma\+\_\+type$<$ T $>$$>$\+::type $\ast$=0, const typename boost\+::enable\+\_\+if$<$ \textbf{ data\+::\+Has\+Serialize}$<$ T $>$$>$\+::type $\ast$=0, const typename boost\+::disable\+\_\+if$<$ std\+::is\+\_\+same$<$ T, std\+::tuple$<$ \textbf{ data\+::\+Dataset\+Info}, arma\+::mat $>$$>$$>$\+::type $\ast$=0)
\item 
{\footnotesize template$<$typename T $>$ }\\void \textbf{ Get\+Printable\+Type} (const \textbf{ util\+::\+Param\+Data} \&d, const void $\ast$, void $\ast$output)
\item 
{\footnotesize template$<$$>$ }\\std\+::string \textbf{ Get\+Printable\+Type$<$ bool $>$} (const \textbf{ util\+::\+Param\+Data} \&, const typename boost\+::disable\+\_\+if$<$ \textbf{ util\+::\+Is\+Std\+Vector}$<$ bool $>$$>$\+::type $\ast$, const typename boost\+::disable\+\_\+if$<$ \textbf{ data\+::\+Has\+Serialize}$<$ bool $>$$>$\+::type $\ast$, const typename boost\+::disable\+\_\+if$<$ arma\+::is\+\_\+arma\+\_\+type$<$ bool $>$$>$\+::type $\ast$, const typename boost\+::disable\+\_\+if$<$ std\+::is\+\_\+same$<$ bool, std\+::tuple$<$ \textbf{ data\+::\+Dataset\+Info}, arma\+::mat $>$$>$$>$\+::type $\ast$)
\item 
{\footnotesize template$<$$>$ }\\std\+::string \textbf{ Get\+Printable\+Type$<$ double $>$} (const \textbf{ util\+::\+Param\+Data} \&, const typename boost\+::disable\+\_\+if$<$ \textbf{ util\+::\+Is\+Std\+Vector}$<$ double $>$$>$\+::type $\ast$, const typename boost\+::disable\+\_\+if$<$ \textbf{ data\+::\+Has\+Serialize}$<$ double $>$$>$\+::type $\ast$, const typename boost\+::disable\+\_\+if$<$ arma\+::is\+\_\+arma\+\_\+type$<$ double $>$$>$\+::type $\ast$, const typename boost\+::disable\+\_\+if$<$ std\+::is\+\_\+same$<$ double, std\+::tuple$<$ \textbf{ data\+::\+Dataset\+Info}, arma\+::mat $>$$>$$>$\+::type $\ast$)
\item 
{\footnotesize template$<$$>$ }\\std\+::string \textbf{ Get\+Printable\+Type$<$ int $>$} (const \textbf{ util\+::\+Param\+Data} \&, const typename boost\+::disable\+\_\+if$<$ \textbf{ util\+::\+Is\+Std\+Vector}$<$ int $>$$>$\+::type $\ast$, const typename boost\+::disable\+\_\+if$<$ \textbf{ data\+::\+Has\+Serialize}$<$ int $>$$>$\+::type $\ast$, const typename boost\+::disable\+\_\+if$<$ arma\+::is\+\_\+arma\+\_\+type$<$ int $>$$>$\+::type $\ast$, const typename boost\+::disable\+\_\+if$<$ std\+::is\+\_\+same$<$ int, std\+::tuple$<$ \textbf{ data\+::\+Dataset\+Info}, arma\+::mat $>$$>$$>$\+::type $\ast$)
\item 
{\footnotesize template$<$$>$ }\\std\+::string \textbf{ Get\+Printable\+Type$<$ size\+\_\+t $>$} (const \textbf{ util\+::\+Param\+Data} \&, const typename boost\+::disable\+\_\+if$<$ \textbf{ util\+::\+Is\+Std\+Vector}$<$ size\+\_\+t $>$$>$\+::type $\ast$, const typename boost\+::disable\+\_\+if$<$ \textbf{ data\+::\+Has\+Serialize}$<$ size\+\_\+t $>$$>$\+::type $\ast$, const typename boost\+::disable\+\_\+if$<$ arma\+::is\+\_\+arma\+\_\+type$<$ size\+\_\+t $>$$>$\+::type $\ast$, const typename boost\+::disable\+\_\+if$<$ std\+::is\+\_\+same$<$ size\+\_\+t, std\+::tuple$<$ \textbf{ data\+::\+Dataset\+Info}, arma\+::mat $>$$>$$>$\+::type $\ast$)
\item 
{\footnotesize template$<$$>$ }\\std\+::string \textbf{ Get\+Printable\+Type$<$ std\+::string $>$} (const \textbf{ util\+::\+Param\+Data} \&, const typename boost\+::disable\+\_\+if$<$ \textbf{ util\+::\+Is\+Std\+Vector}$<$ std\+::string $>$$>$\+::type $\ast$, const typename boost\+::disable\+\_\+if$<$ \textbf{ data\+::\+Has\+Serialize}$<$ std\+::string $>$$>$\+::type $\ast$, const typename boost\+::disable\+\_\+if$<$ arma\+::is\+\_\+arma\+\_\+type$<$ std\+::string $>$$>$\+::type $\ast$, const typename boost\+::disable\+\_\+if$<$ std\+::is\+\_\+same$<$ std\+::string, std\+::tuple$<$ \textbf{ data\+::\+Dataset\+Info}, arma\+::mat $>$$>$$>$\+::type $\ast$)
\item 
bool \textbf{ Ignore\+Check} (const std\+::string \&param\+Name)
\begin{DoxyCompactList}\small\item\em Print whether or not we should ignore a check on the given parameter. \end{DoxyCompactList}\item 
bool \textbf{ Ignore\+Check} (const std\+::vector$<$ std\+::string $>$ \&constraints)
\begin{DoxyCompactList}\small\item\em Print whether or not we should ignore a check on the given set of constraints. \end{DoxyCompactList}\item 
bool \textbf{ Ignore\+Check} (const std\+::vector$<$ std\+::pair$<$ std\+::string, bool $>$$>$ \&constraints, const std\+::string \&param\+Name)
\begin{DoxyCompactList}\small\item\em Print whether or not we should ignore a check on the given set of constraints. \end{DoxyCompactList}\item 
{\footnotesize template$<$typename T $>$ }\\void \textbf{ Import\+Decl} (const \textbf{ util\+::\+Param\+Data} \&d, const size\+\_\+t indent, const typename boost\+::disable\+\_\+if$<$ arma\+::is\+\_\+arma\+\_\+type$<$ T $>$$>$\+::type $\ast$=0, const typename boost\+::enable\+\_\+if$<$ \textbf{ data\+::\+Has\+Serialize}$<$ T $>$$>$\+::type $\ast$=0)
\begin{DoxyCompactList}\small\item\em For a serializable type, print a cppclass definition. \end{DoxyCompactList}\item 
{\footnotesize template$<$typename T $>$ }\\void \textbf{ Import\+Decl} (const \textbf{ util\+::\+Param\+Data} \&, const size\+\_\+t, const typename boost\+::disable\+\_\+if$<$ arma\+::is\+\_\+arma\+\_\+type$<$ T $>$$>$\+::type $\ast$=0, const typename boost\+::disable\+\_\+if$<$ \textbf{ data\+::\+Has\+Serialize}$<$ T $>$$>$\+::type $\ast$=0)
\begin{DoxyCompactList}\small\item\em For a non-\/serializable type, print nothing. \end{DoxyCompactList}\item 
{\footnotesize template$<$typename T $>$ }\\void \textbf{ Import\+Decl} (const \textbf{ util\+::\+Param\+Data} \&, const size\+\_\+t, const typename boost\+::enable\+\_\+if$<$ arma\+::is\+\_\+arma\+\_\+type$<$ T $>$$>$\+::type $\ast$=0)
\begin{DoxyCompactList}\small\item\em For a matrix type, print nothing. \end{DoxyCompactList}\item 
{\footnotesize template$<$typename T $>$ }\\void \textbf{ Import\+Decl} (const \textbf{ util\+::\+Param\+Data} \&d, const void $\ast$indent, void $\ast$)
\begin{DoxyCompactList}\small\item\em Print the cppclass definition for a serializable model; print nothing for a non-\/serializable type. \end{DoxyCompactList}\item 
std\+::string \textbf{ Param\+String} (const std\+::string \&param\+Name)
\begin{DoxyCompactList}\small\item\em Given the parameter name, determine what it would actually be when passed to the command line. \end{DoxyCompactList}\item 
{\footnotesize template$<$typename T $>$ }\\void \textbf{ Print\+Class\+Defn} (const \textbf{ util\+::\+Param\+Data} \&, const typename boost\+::disable\+\_\+if$<$ arma\+::is\+\_\+arma\+\_\+type$<$ T $>$$>$\+::type $\ast$=0, const typename boost\+::disable\+\_\+if$<$ \textbf{ data\+::\+Has\+Serialize}$<$ T $>$$>$\+::type $\ast$=0)
\begin{DoxyCompactList}\small\item\em Non-\/serializable models don\textquotesingle{}t require any special definitions, so this prints nothing. \end{DoxyCompactList}\item 
{\footnotesize template$<$typename T $>$ }\\void \textbf{ Print\+Class\+Defn} (const \textbf{ util\+::\+Param\+Data} \&, const typename boost\+::enable\+\_\+if$<$ arma\+::is\+\_\+arma\+\_\+type$<$ T $>$$>$\+::type $\ast$=0)
\begin{DoxyCompactList}\small\item\em Matrices don\textquotesingle{}t require any special definitions, so this prints nothing. \end{DoxyCompactList}\item 
{\footnotesize template$<$typename T $>$ }\\void \textbf{ Print\+Class\+Defn} (const \textbf{ util\+::\+Param\+Data} \&d, const typename boost\+::disable\+\_\+if$<$ arma\+::is\+\_\+arma\+\_\+type$<$ T $>$$>$\+::type $\ast$=0, const typename boost\+::enable\+\_\+if$<$ \textbf{ data\+::\+Has\+Serialize}$<$ T $>$$>$\+::type $\ast$=0)
\begin{DoxyCompactList}\small\item\em Serializable models require a special class definition. \end{DoxyCompactList}\item 
{\footnotesize template$<$typename T $>$ }\\void \textbf{ Print\+Class\+Defn} (const \textbf{ util\+::\+Param\+Data} \&d, const void $\ast$, void $\ast$)
\begin{DoxyCompactList}\small\item\em Print the class definition to stdout. \end{DoxyCompactList}\item 
std\+::string \textbf{ Print\+Dataset} (const std\+::string \&dataset\+Name)
\begin{DoxyCompactList}\small\item\em Given the name of a matrix, print it. \end{DoxyCompactList}\item 
std\+::string \textbf{ Print\+Default} (const std\+::string \&param\+Name)
\begin{DoxyCompactList}\small\item\em Given a parameter name, print its corresponding default value. \end{DoxyCompactList}\item 
{\footnotesize template$<$typename T $>$ }\\void \textbf{ Print\+Defn} (const \textbf{ util\+::\+Param\+Data} \&d, const void $\ast$, void $\ast$)
\begin{DoxyCompactList}\small\item\em Print the definition for a Python binding parameter to stdout. \end{DoxyCompactList}\item 
{\footnotesize template$<$typename T $>$ }\\void \textbf{ Print\+Doc} (const \textbf{ util\+::\+Param\+Data} \&d, const void $\ast$input, void $\ast$)
\begin{DoxyCompactList}\small\item\em Print the docstring documentation for a given parameter. \end{DoxyCompactList}\item 
std\+::string \textbf{ Print\+Import} (const std\+::string \&binding\+Name)
\begin{DoxyCompactList}\small\item\em Print any import information for the Python binding. \end{DoxyCompactList}\item 
std\+::string \textbf{ Print\+Input\+Options} ()
\item 
{\footnotesize template$<$typename T , typename... Args$>$ }\\std\+::string \textbf{ Print\+Input\+Options} (const std\+::string \&param\+Name, const T \&value, Args... args)
\begin{DoxyCompactList}\small\item\em Print an input option. \end{DoxyCompactList}\item 
{\footnotesize template$<$typename T $>$ }\\void \textbf{ Print\+Input\+Processing} (const \textbf{ util\+::\+Param\+Data} \&d, const size\+\_\+t indent, const typename boost\+::disable\+\_\+if$<$ \textbf{ util\+::\+Is\+Std\+Vector}$<$ T $>$$>$\+::type $\ast$=0, const typename boost\+::disable\+\_\+if$<$ arma\+::is\+\_\+arma\+\_\+type$<$ T $>$$>$\+::type $\ast$=0, const typename boost\+::disable\+\_\+if$<$ \textbf{ data\+::\+Has\+Serialize}$<$ T $>$$>$\+::type $\ast$=0, const typename boost\+::disable\+\_\+if$<$ std\+::is\+\_\+same$<$ T, std\+::tuple$<$ \textbf{ data\+::\+Dataset\+Info}, arma\+::mat $>$$>$$>$\+::type $\ast$=0)
\begin{DoxyCompactList}\small\item\em Print input processing for a standard option type. \end{DoxyCompactList}\item 
{\footnotesize template$<$typename T $>$ }\\void \textbf{ Print\+Input\+Processing} (const \textbf{ util\+::\+Param\+Data} \&d, const size\+\_\+t indent, const typename boost\+::disable\+\_\+if$<$ arma\+::is\+\_\+arma\+\_\+type$<$ T $>$$>$\+::type $\ast$=0, const typename boost\+::disable\+\_\+if$<$ \textbf{ data\+::\+Has\+Serialize}$<$ T $>$$>$\+::type $\ast$=0, const typename boost\+::disable\+\_\+if$<$ std\+::is\+\_\+same$<$ T, std\+::tuple$<$ \textbf{ data\+::\+Dataset\+Info}, arma\+::mat $>$$>$$>$\+::type $\ast$=0, const typename boost\+::enable\+\_\+if$<$ \textbf{ util\+::\+Is\+Std\+Vector}$<$ T $>$$>$\+::type $\ast$=0)
\begin{DoxyCompactList}\small\item\em Print input processing for a vector type. \end{DoxyCompactList}\item 
{\footnotesize template$<$typename T $>$ }\\void \textbf{ Print\+Input\+Processing} (const \textbf{ util\+::\+Param\+Data} \&d, const size\+\_\+t indent, const typename boost\+::disable\+\_\+if$<$ \textbf{ util\+::\+Is\+Std\+Vector}$<$ T $>$$>$\+::type $\ast$=0, const typename boost\+::enable\+\_\+if$<$ arma\+::is\+\_\+arma\+\_\+type$<$ T $>$$>$\+::type $\ast$=0)
\begin{DoxyCompactList}\small\item\em Print input processing for a matrix type. \end{DoxyCompactList}\item 
{\footnotesize template$<$typename T $>$ }\\void \textbf{ Print\+Input\+Processing} (const \textbf{ util\+::\+Param\+Data} \&d, const size\+\_\+t indent, const typename boost\+::disable\+\_\+if$<$ \textbf{ util\+::\+Is\+Std\+Vector}$<$ T $>$$>$\+::type $\ast$=0, const typename boost\+::disable\+\_\+if$<$ arma\+::is\+\_\+arma\+\_\+type$<$ T $>$$>$\+::type $\ast$=0, const typename boost\+::enable\+\_\+if$<$ \textbf{ data\+::\+Has\+Serialize}$<$ T $>$$>$\+::type $\ast$=0)
\begin{DoxyCompactList}\small\item\em Print input processing for a serializable type. \end{DoxyCompactList}\item 
{\footnotesize template$<$typename T $>$ }\\void \textbf{ Print\+Input\+Processing} (const \textbf{ util\+::\+Param\+Data} \&d, const size\+\_\+t indent, const typename boost\+::disable\+\_\+if$<$ \textbf{ util\+::\+Is\+Std\+Vector}$<$ T $>$$>$\+::type $\ast$=0, const typename boost\+::enable\+\_\+if$<$ std\+::is\+\_\+same$<$ T, std\+::tuple$<$ \textbf{ data\+::\+Dataset\+Info}, arma\+::mat $>$$>$$>$\+::type $\ast$=0)
\begin{DoxyCompactList}\small\item\em Print input processing for a matrix/\+Dataset\+Info type. \end{DoxyCompactList}\item 
{\footnotesize template$<$typename T $>$ }\\void \textbf{ Print\+Input\+Processing} (const \textbf{ util\+::\+Param\+Data} \&d, const void $\ast$input, void $\ast$)
\begin{DoxyCompactList}\small\item\em Given parameter information and the current number of spaces for indentation, print the code to process the input to cout. \end{DoxyCompactList}\item 
std\+::string \textbf{ Print\+Model} (const std\+::string \&model\+Name)
\begin{DoxyCompactList}\small\item\em Given the name of a model, print it. \end{DoxyCompactList}\item 
std\+::string \textbf{ Print\+Output\+Option\+Info} ()
\begin{DoxyCompactList}\small\item\em Print any special information about output options. \end{DoxyCompactList}\item 
std\+::string \textbf{ Print\+Output\+Options} ()
\item 
{\footnotesize template$<$typename T , typename... Args$>$ }\\std\+::string \textbf{ Print\+Output\+Options} (const std\+::string \&param\+Name, const T \&value, Args... args)
\item 
{\footnotesize template$<$typename T $>$ }\\void \textbf{ Print\+Output\+Processing} (const \textbf{ util\+::\+Param\+Data} \&d, const size\+\_\+t indent, const bool only\+Output, const typename boost\+::disable\+\_\+if$<$ arma\+::is\+\_\+arma\+\_\+type$<$ T $>$$>$\+::type $\ast$=0, const typename boost\+::disable\+\_\+if$<$ \textbf{ data\+::\+Has\+Serialize}$<$ T $>$$>$\+::type $\ast$=0, const typename boost\+::disable\+\_\+if$<$ std\+::is\+\_\+same$<$ T, std\+::tuple$<$ \textbf{ data\+::\+Dataset\+Info}, arma\+::mat $>$$>$$>$\+::type $\ast$=0)
\begin{DoxyCompactList}\small\item\em Print output processing for a regular parameter type. \end{DoxyCompactList}\item 
{\footnotesize template$<$typename T $>$ }\\void \textbf{ Print\+Output\+Processing} (const \textbf{ util\+::\+Param\+Data} \&d, const size\+\_\+t indent, const bool only\+Output, const typename boost\+::enable\+\_\+if$<$ arma\+::is\+\_\+arma\+\_\+type$<$ T $>$$>$\+::type $\ast$=0)
\begin{DoxyCompactList}\small\item\em Print output processing for a matrix type. \end{DoxyCompactList}\item 
{\footnotesize template$<$typename T $>$ }\\void \textbf{ Print\+Output\+Processing} (const \textbf{ util\+::\+Param\+Data} \&d, const size\+\_\+t indent, const bool only\+Output, const typename boost\+::enable\+\_\+if$<$ std\+::is\+\_\+same$<$ T, std\+::tuple$<$ \textbf{ data\+::\+Dataset\+Info}, arma\+::mat $>$$>$$>$\+::type $\ast$=0)
\begin{DoxyCompactList}\small\item\em Print output processing for a dataset info / matrix combination. \end{DoxyCompactList}\item 
{\footnotesize template$<$typename T $>$ }\\void \textbf{ Print\+Output\+Processing} (const \textbf{ util\+::\+Param\+Data} \&d, const size\+\_\+t indent, const bool only\+Output, const typename boost\+::disable\+\_\+if$<$ arma\+::is\+\_\+arma\+\_\+type$<$ T $>$$>$\+::type $\ast$=0, const typename boost\+::enable\+\_\+if$<$ \textbf{ data\+::\+Has\+Serialize}$<$ T $>$$>$\+::type $\ast$=0)
\begin{DoxyCompactList}\small\item\em Print output processing for a serializable model. \end{DoxyCompactList}\item 
{\footnotesize template$<$typename T $>$ }\\void \textbf{ Print\+Output\+Processing} (const \textbf{ util\+::\+Param\+Data} \&d, const void $\ast$input, void $\ast$)
\begin{DoxyCompactList}\small\item\em Given parameter information and the current number of spaces for indentation, print the code to process the output to cout. \end{DoxyCompactList}\item 
void \textbf{ Print\+P\+YX} (const \textbf{ util\+::\+Program\+Doc} \&program\+Info, const std\+::string \&main\+Filename, const std\+::string \&function\+Name)
\begin{DoxyCompactList}\small\item\em Given a list of parameter definition and program documentation, print a generated .pyx file to stdout. \end{DoxyCompactList}\item 
{\footnotesize template$<$typename T $>$ }\\std\+::string \textbf{ Print\+Type\+Doc} (const \textbf{ util\+::\+Param\+Data} \&data, const typename boost\+::disable\+\_\+if$<$ arma\+::is\+\_\+arma\+\_\+type$<$ T $>$$>$\+::type $\ast$=0, const typename boost\+::disable\+\_\+if$<$ \textbf{ util\+::\+Is\+Std\+Vector}$<$ T $>$$>$\+::type $\ast$=0, const typename boost\+::disable\+\_\+if$<$ \textbf{ data\+::\+Has\+Serialize}$<$ T $>$$>$\+::type $\ast$=0, const typename boost\+::disable\+\_\+if$<$ std\+::is\+\_\+same$<$ T, std\+::tuple$<$ \textbf{ data\+::\+Dataset\+Info}, arma\+::mat $>$$>$$>$\+::type $\ast$=0)
\begin{DoxyCompactList}\small\item\em Return a string representing the command-\/line type of an option. \end{DoxyCompactList}\item 
{\footnotesize template$<$typename T $>$ }\\std\+::string \textbf{ Print\+Type\+Doc} (const \textbf{ util\+::\+Param\+Data} \&data, const typename std\+::enable\+\_\+if$<$ \textbf{ util\+::\+Is\+Std\+Vector}$<$ T $>$\+::value $>$\+::type $\ast$=0)
\begin{DoxyCompactList}\small\item\em Return a string representing the command-\/line type of a vector. \end{DoxyCompactList}\item 
{\footnotesize template$<$typename T $>$ }\\std\+::string \textbf{ Print\+Type\+Doc} (const \textbf{ util\+::\+Param\+Data} \&data, const typename std\+::enable\+\_\+if$<$ arma\+::is\+\_\+arma\+\_\+type$<$ T $>$\+::value $>$\+::type $\ast$=0)
\begin{DoxyCompactList}\small\item\em Return a string representing the command-\/line type of a matrix option. \end{DoxyCompactList}\item 
{\footnotesize template$<$typename T $>$ }\\std\+::string \textbf{ Print\+Type\+Doc} (const \textbf{ util\+::\+Param\+Data} \&data, const typename std\+::enable\+\_\+if$<$ std\+::is\+\_\+same$<$ T, std\+::tuple$<$ \textbf{ data\+::\+Dataset\+Info}, arma\+::mat $>$$>$\+::value $>$\+::type $\ast$=0)
\begin{DoxyCompactList}\small\item\em Return a string representing the command-\/line type of a matrix tuple option. \end{DoxyCompactList}\item 
{\footnotesize template$<$typename T $>$ }\\std\+::string \textbf{ Print\+Type\+Doc} (const \textbf{ util\+::\+Param\+Data} \&data, const typename boost\+::disable\+\_\+if$<$ arma\+::is\+\_\+arma\+\_\+type$<$ T $>$$>$\+::type $\ast$=0, const typename boost\+::enable\+\_\+if$<$ \textbf{ data\+::\+Has\+Serialize}$<$ T $>$$>$\+::type $\ast$=0)
\begin{DoxyCompactList}\small\item\em Return a string representing the command-\/line type of a model. \end{DoxyCompactList}\item 
{\footnotesize template$<$typename T $>$ }\\void \textbf{ Print\+Type\+Doc} (const \textbf{ util\+::\+Param\+Data} \&data, const void $\ast$, void $\ast$output)
\begin{DoxyCompactList}\small\item\em Print the command-\/line type of an option into a string. \end{DoxyCompactList}\item 
{\footnotesize template$<$typename T $>$ }\\std\+::string \textbf{ Print\+Value} (const T \&value, bool quotes)
\begin{DoxyCompactList}\small\item\em Given a parameter type, print the corresponding value. \end{DoxyCompactList}\item 
{\footnotesize template$<$$>$ }\\std\+::string \textbf{ Print\+Value} (const bool \&value, bool quotes)
\item 
{\footnotesize template$<$typename... Args$>$ }\\std\+::string \textbf{ Program\+Call} (const std\+::string \&\textbf{ program\+Name}, Args... args)
\begin{DoxyCompactList}\small\item\em Given a name of a binding and a variable number of arguments (and their contents), print the corresponding function call. \end{DoxyCompactList}\item 
std\+::string \textbf{ Program\+Call} (const std\+::string \&\textbf{ program\+Name})
\begin{DoxyCompactList}\small\item\em Given the name of a binding, print a program call assuming that all options are specified. \end{DoxyCompactList}\item 
{\footnotesize template$<$typename T $>$ }\\void \textbf{ Serialize\+In} (T $\ast$t, const std\+::string \&str, const std\+::string \&name)
\item 
{\footnotesize template$<$typename T $>$ }\\std\+::string \textbf{ Serialize\+Out} (T $\ast$t, const std\+::string \&name)
\item 
void \textbf{ Strip\+Type} (const std\+::string \&input\+Type, std\+::string \&stripped\+Type, std\+::string \&printed\+Type, std\+::string \&defaults\+Type)
\begin{DoxyCompactList}\small\item\em Given an input type like, e.\+g., \char`\"{}\+Logistic\+Regression$<$$>$\char`\"{}, return three types that can be used in Python code. \end{DoxyCompactList}\end{DoxyCompactItemize}
\subsection*{Variables}
\begin{DoxyCompactItemize}
\item 
std\+::string \textbf{ program\+Name}
\end{DoxyCompactItemize}


\subsection{Function Documentation}
\mbox{\label{namespacemlpack_1_1bindings_1_1python_a017a0f12b83660c263240c1e33ab9c20}} 
\index{mlpack\+::bindings\+::python@{mlpack\+::bindings\+::python}!Default\+Param@{Default\+Param}}
\index{Default\+Param@{Default\+Param}!mlpack\+::bindings\+::python@{mlpack\+::bindings\+::python}}
\subsubsection{Default\+Param()}
{\footnotesize\ttfamily void mlpack\+::bindings\+::python\+::\+Default\+Param (\begin{DoxyParamCaption}\item[{const \textbf{ util\+::\+Param\+Data} \&}]{data,  }\item[{const void $\ast$}]{,  }\item[{void $\ast$}]{output }\end{DoxyParamCaption})}



Return the default value of an option. 

This is the function that will be placed into the \doxyref{C\+LI}{p.}{classmlpack_1_1CLI} function\+Map. 

Definition at line 80 of file default\+\_\+param.\+hpp.

\mbox{\label{namespacemlpack_1_1bindings_1_1python_a25131a23562652c81cbd3b1b182c0704}} 
\index{mlpack\+::bindings\+::python@{mlpack\+::bindings\+::python}!Default\+Param\+Impl@{Default\+Param\+Impl}}
\index{Default\+Param\+Impl@{Default\+Param\+Impl}!mlpack\+::bindings\+::python@{mlpack\+::bindings\+::python}}
\subsubsection{Default\+Param\+Impl()\hspace{0.1cm}{\footnotesize\ttfamily [1/5]}}
{\footnotesize\ttfamily std\+::string mlpack\+::bindings\+::python\+::\+Default\+Param\+Impl (\begin{DoxyParamCaption}\item[{const \textbf{ util\+::\+Param\+Data} \&}]{data,  }\item[{const typename boost\+::disable\+\_\+if$<$ arma\+::is\+\_\+arma\+\_\+type$<$ T $>$$>$\+::type $\ast$}]{ = {\ttfamily 0},  }\item[{const typename boost\+::disable\+\_\+if$<$ \textbf{ util\+::\+Is\+Std\+Vector}$<$ T $>$$>$\+::type $\ast$}]{ = {\ttfamily 0},  }\item[{const typename boost\+::disable\+\_\+if$<$ \textbf{ data\+::\+Has\+Serialize}$<$ T $>$$>$\+::type $\ast$}]{ = {\ttfamily 0},  }\item[{const typename boost\+::disable\+\_\+if$<$ std\+::is\+\_\+same$<$ T, std\+::string $>$$>$\+::type $\ast$}]{ = {\ttfamily 0},  }\item[{const typename boost\+::disable\+\_\+if$<$ std\+::is\+\_\+same$<$ T, std\+::tuple$<$ \textbf{ mlpack\+::data\+::\+Dataset\+Info}, arma\+::mat $>$$>$$>$\+::type $\ast$}]{ = {\ttfamily 0} }\end{DoxyParamCaption})}



Return the default value of an option. 

This is for regular types. \mbox{\label{namespacemlpack_1_1bindings_1_1python_a8447699e0f8bbe213c07c02bf2eb9580}} 
\index{mlpack\+::bindings\+::python@{mlpack\+::bindings\+::python}!Default\+Param\+Impl@{Default\+Param\+Impl}}
\index{Default\+Param\+Impl@{Default\+Param\+Impl}!mlpack\+::bindings\+::python@{mlpack\+::bindings\+::python}}
\subsubsection{Default\+Param\+Impl()\hspace{0.1cm}{\footnotesize\ttfamily [2/5]}}
{\footnotesize\ttfamily std\+::string mlpack\+::bindings\+::python\+::\+Default\+Param\+Impl (\begin{DoxyParamCaption}\item[{const \textbf{ util\+::\+Param\+Data} \&}]{data,  }\item[{const typename boost\+::enable\+\_\+if$<$ \textbf{ util\+::\+Is\+Std\+Vector}$<$ T $>$$>$\+::type $\ast$}]{ = {\ttfamily 0} }\end{DoxyParamCaption})}



Return the default value of a vector option. 

\mbox{\label{namespacemlpack_1_1bindings_1_1python_a9cb0a8dda9514430d152aa8576db3c44}} 
\index{mlpack\+::bindings\+::python@{mlpack\+::bindings\+::python}!Default\+Param\+Impl@{Default\+Param\+Impl}}
\index{Default\+Param\+Impl@{Default\+Param\+Impl}!mlpack\+::bindings\+::python@{mlpack\+::bindings\+::python}}
\subsubsection{Default\+Param\+Impl()\hspace{0.1cm}{\footnotesize\ttfamily [3/5]}}
{\footnotesize\ttfamily std\+::string mlpack\+::bindings\+::python\+::\+Default\+Param\+Impl (\begin{DoxyParamCaption}\item[{const \textbf{ util\+::\+Param\+Data} \&}]{data,  }\item[{const typename boost\+::enable\+\_\+if$<$ std\+::is\+\_\+same$<$ T, std\+::string $>$$>$\+::type $\ast$}]{ = {\ttfamily 0} }\end{DoxyParamCaption})}



Return the default value of a string option. 

\mbox{\label{namespacemlpack_1_1bindings_1_1python_af5d451cd42e7ff000e34af8fa6ca94a8}} 
\index{mlpack\+::bindings\+::python@{mlpack\+::bindings\+::python}!Default\+Param\+Impl@{Default\+Param\+Impl}}
\index{Default\+Param\+Impl@{Default\+Param\+Impl}!mlpack\+::bindings\+::python@{mlpack\+::bindings\+::python}}
\subsubsection{Default\+Param\+Impl()\hspace{0.1cm}{\footnotesize\ttfamily [4/5]}}
{\footnotesize\ttfamily std\+::string mlpack\+::bindings\+::python\+::\+Default\+Param\+Impl (\begin{DoxyParamCaption}\item[{const \textbf{ util\+::\+Param\+Data} \&}]{data,  }\item[{const typename boost\+::enable\+\_\+if\+\_\+c$<$ arma\+::is\+\_\+arma\+\_\+type$<$ T $>$\+::value$\vert$$\vert$std\+::is\+\_\+same$<$ T, std\+::tuple$<$ \textbf{ mlpack\+::data\+::\+Dataset\+Info}, arma\+::mat $>$$>$\+::value $>$\+::type $\ast$}]{ = {\ttfamily 0} }\end{DoxyParamCaption})}



Return the default value of a matrix option, a tuple option, a serializable option, or a string option (this returns the default filename, or \textquotesingle{}\textquotesingle{} if the default is no file). 

\mbox{\label{namespacemlpack_1_1bindings_1_1python_aed61bfe24f5b574215a3727947eb27d8}} 
\index{mlpack\+::bindings\+::python@{mlpack\+::bindings\+::python}!Default\+Param\+Impl@{Default\+Param\+Impl}}
\index{Default\+Param\+Impl@{Default\+Param\+Impl}!mlpack\+::bindings\+::python@{mlpack\+::bindings\+::python}}
\subsubsection{Default\+Param\+Impl()\hspace{0.1cm}{\footnotesize\ttfamily [5/5]}}
{\footnotesize\ttfamily std\+::string mlpack\+::bindings\+::python\+::\+Default\+Param\+Impl (\begin{DoxyParamCaption}\item[{const \textbf{ util\+::\+Param\+Data} \&}]{data,  }\item[{const typename boost\+::disable\+\_\+if$<$ arma\+::is\+\_\+arma\+\_\+type$<$ T $>$$>$\+::type $\ast$}]{ = {\ttfamily 0},  }\item[{const typename boost\+::enable\+\_\+if$<$ \textbf{ data\+::\+Has\+Serialize}$<$ T $>$$>$\+::type $\ast$}]{ = {\ttfamily 0} }\end{DoxyParamCaption})}



Return the default value of a model option (this returns the default filename, or \textquotesingle{}\textquotesingle{} if the default is no file). 

\mbox{\label{namespacemlpack_1_1bindings_1_1python_a6e0e0614e11b883601227d5bf884fce6}} 
\index{mlpack\+::bindings\+::python@{mlpack\+::bindings\+::python}!Get\+Arma\+Type@{Get\+Arma\+Type}}
\index{Get\+Arma\+Type@{Get\+Arma\+Type}!mlpack\+::bindings\+::python@{mlpack\+::bindings\+::python}}
\subsubsection{Get\+Arma\+Type()}
{\footnotesize\ttfamily std\+::string mlpack\+::bindings\+::python\+::\+Get\+Arma\+Type (\begin{DoxyParamCaption}{ }\end{DoxyParamCaption})\hspace{0.3cm}{\ttfamily [inline]}}



This is used for arma\+::\+Mat$<$$>$ types; it will return \char`\"{}mat\char`\"{} for matrices, \char`\"{}row\char`\"{} for row vectors, and \char`\"{}col\char`\"{} for column vectors. 



Definition at line 28 of file get\+\_\+arma\+\_\+type.\+hpp.

\mbox{\label{namespacemlpack_1_1bindings_1_1python_a24efbbdd5edd02b416e5f53cff686a07}} 
\index{mlpack\+::bindings\+::python@{mlpack\+::bindings\+::python}!Get\+Binding\+Name@{Get\+Binding\+Name}}
\index{Get\+Binding\+Name@{Get\+Binding\+Name}!mlpack\+::bindings\+::python@{mlpack\+::bindings\+::python}}
\subsubsection{Get\+Binding\+Name()}
{\footnotesize\ttfamily std\+::string mlpack\+::bindings\+::python\+::\+Get\+Binding\+Name (\begin{DoxyParamCaption}\item[{const std\+::string \&}]{binding\+Name }\end{DoxyParamCaption})\hspace{0.3cm}{\ttfamily [inline]}}



Given the name of a binding, print its Python name. 

\mbox{\label{namespacemlpack_1_1bindings_1_1python_ad7bbb74c8e10aa9d5d9689971cb5aa58}} 
\index{mlpack\+::bindings\+::python@{mlpack\+::bindings\+::python}!Get\+Cython\+Type@{Get\+Cython\+Type}}
\index{Get\+Cython\+Type@{Get\+Cython\+Type}!mlpack\+::bindings\+::python@{mlpack\+::bindings\+::python}}
\subsubsection{Get\+Cython\+Type()\hspace{0.1cm}{\footnotesize\ttfamily [1/4]}}
{\footnotesize\ttfamily std\+::string mlpack\+::bindings\+::python\+::\+Get\+Cython\+Type (\begin{DoxyParamCaption}\item[{const \textbf{ util\+::\+Param\+Data} \&}]{,  }\item[{const typename boost\+::disable\+\_\+if$<$ \textbf{ util\+::\+Is\+Std\+Vector}$<$ T $>$$>$\+::type $\ast$}]{ = {\ttfamily 0},  }\item[{const typename boost\+::disable\+\_\+if$<$ \textbf{ data\+::\+Has\+Serialize}$<$ T $>$$>$\+::type $\ast$}]{ = {\ttfamily 0},  }\item[{const typename boost\+::disable\+\_\+if$<$ arma\+::is\+\_\+arma\+\_\+type$<$ T $>$$>$\+::type $\ast$}]{ = {\ttfamily 0} }\end{DoxyParamCaption})\hspace{0.3cm}{\ttfamily [inline]}}



Definition at line 24 of file get\+\_\+cython\+\_\+type.\+hpp.

\mbox{\label{namespacemlpack_1_1bindings_1_1python_ae1b518e5d73140599c6668b164acc5d0}} 
\index{mlpack\+::bindings\+::python@{mlpack\+::bindings\+::python}!Get\+Cython\+Type@{Get\+Cython\+Type}}
\index{Get\+Cython\+Type@{Get\+Cython\+Type}!mlpack\+::bindings\+::python@{mlpack\+::bindings\+::python}}
\subsubsection{Get\+Cython\+Type()\hspace{0.1cm}{\footnotesize\ttfamily [2/4]}}
{\footnotesize\ttfamily std\+::string mlpack\+::bindings\+::python\+::\+Get\+Cython\+Type (\begin{DoxyParamCaption}\item[{const \textbf{ util\+::\+Param\+Data} \&}]{d,  }\item[{const typename boost\+::enable\+\_\+if$<$ \textbf{ util\+::\+Is\+Std\+Vector}$<$ T $>$$>$\+::type $\ast$}]{ = {\ttfamily 0} }\end{DoxyParamCaption})\hspace{0.3cm}{\ttfamily [inline]}}



Definition at line 84 of file get\+\_\+cython\+\_\+type.\+hpp.

\mbox{\label{namespacemlpack_1_1bindings_1_1python_a7f6d7f6b4398b1378cb04b262e3e4419}} 
\index{mlpack\+::bindings\+::python@{mlpack\+::bindings\+::python}!Get\+Cython\+Type@{Get\+Cython\+Type}}
\index{Get\+Cython\+Type@{Get\+Cython\+Type}!mlpack\+::bindings\+::python@{mlpack\+::bindings\+::python}}
\subsubsection{Get\+Cython\+Type()\hspace{0.1cm}{\footnotesize\ttfamily [3/4]}}
{\footnotesize\ttfamily std\+::string mlpack\+::bindings\+::python\+::\+Get\+Cython\+Type (\begin{DoxyParamCaption}\item[{const \textbf{ util\+::\+Param\+Data} \&}]{d,  }\item[{const typename boost\+::enable\+\_\+if$<$ arma\+::is\+\_\+arma\+\_\+type$<$ T $>$$>$\+::type $\ast$}]{ = {\ttfamily 0} }\end{DoxyParamCaption})\hspace{0.3cm}{\ttfamily [inline]}}



Definition at line 92 of file get\+\_\+cython\+\_\+type.\+hpp.

\mbox{\label{namespacemlpack_1_1bindings_1_1python_a33a205a5cdc826837eb73574a6da49dc}} 
\index{mlpack\+::bindings\+::python@{mlpack\+::bindings\+::python}!Get\+Cython\+Type@{Get\+Cython\+Type}}
\index{Get\+Cython\+Type@{Get\+Cython\+Type}!mlpack\+::bindings\+::python@{mlpack\+::bindings\+::python}}
\subsubsection{Get\+Cython\+Type()\hspace{0.1cm}{\footnotesize\ttfamily [4/4]}}
{\footnotesize\ttfamily std\+::string mlpack\+::bindings\+::python\+::\+Get\+Cython\+Type (\begin{DoxyParamCaption}\item[{const \textbf{ util\+::\+Param\+Data} \&}]{d,  }\item[{const typename boost\+::disable\+\_\+if$<$ arma\+::is\+\_\+arma\+\_\+type$<$ T $>$$>$\+::type $\ast$}]{ = {\ttfamily 0},  }\item[{const typename boost\+::enable\+\_\+if$<$ \textbf{ data\+::\+Has\+Serialize}$<$ T $>$$>$\+::type $\ast$}]{ = {\ttfamily 0} }\end{DoxyParamCaption})\hspace{0.3cm}{\ttfamily [inline]}}



Definition at line 106 of file get\+\_\+cython\+\_\+type.\+hpp.



References Param\+Data\+::cpp\+Type.

\mbox{\label{namespacemlpack_1_1bindings_1_1python_a572cbaae97185745b53faa6dd49acd4b}} 
\index{mlpack\+::bindings\+::python@{mlpack\+::bindings\+::python}!Get\+Cython\+Type$<$ bool $>$@{Get\+Cython\+Type$<$ bool $>$}}
\index{Get\+Cython\+Type$<$ bool $>$@{Get\+Cython\+Type$<$ bool $>$}!mlpack\+::bindings\+::python@{mlpack\+::bindings\+::python}}
\subsubsection{Get\+Cython\+Type$<$ bool $>$()}
{\footnotesize\ttfamily std\+::string \textbf{ mlpack\+::bindings\+::python\+::\+Get\+Cython\+Type}$<$ bool $>$ (\begin{DoxyParamCaption}\item[{const \textbf{ util\+::\+Param\+Data} \&}]{,  }\item[{const typename boost\+::disable\+\_\+if$<$ \textbf{ util\+::\+Is\+Std\+Vector}$<$ bool $>$$>$\+::type $\ast$}]{,  }\item[{const typename boost\+::disable\+\_\+if$<$ \textbf{ data\+::\+Has\+Serialize}$<$ bool $>$$>$\+::type $\ast$}]{,  }\item[{const typename boost\+::disable\+\_\+if$<$ arma\+::is\+\_\+arma\+\_\+type$<$ bool $>$$>$\+::type $\ast$}]{ }\end{DoxyParamCaption})\hspace{0.3cm}{\ttfamily [inline]}}



Definition at line 74 of file get\+\_\+cython\+\_\+type.\+hpp.

\mbox{\label{namespacemlpack_1_1bindings_1_1python_a5f4e3078c8dd9f8baafd976d5db44e83}} 
\index{mlpack\+::bindings\+::python@{mlpack\+::bindings\+::python}!Get\+Cython\+Type$<$ double $>$@{Get\+Cython\+Type$<$ double $>$}}
\index{Get\+Cython\+Type$<$ double $>$@{Get\+Cython\+Type$<$ double $>$}!mlpack\+::bindings\+::python@{mlpack\+::bindings\+::python}}
\subsubsection{Get\+Cython\+Type$<$ double $>$()}
{\footnotesize\ttfamily std\+::string \textbf{ mlpack\+::bindings\+::python\+::\+Get\+Cython\+Type}$<$ double $>$ (\begin{DoxyParamCaption}\item[{const \textbf{ util\+::\+Param\+Data} \&}]{,  }\item[{const typename boost\+::disable\+\_\+if$<$ \textbf{ util\+::\+Is\+Std\+Vector}$<$ double $>$$>$\+::type $\ast$}]{,  }\item[{const typename boost\+::disable\+\_\+if$<$ \textbf{ data\+::\+Has\+Serialize}$<$ double $>$$>$\+::type $\ast$}]{,  }\item[{const typename boost\+::disable\+\_\+if$<$ arma\+::is\+\_\+arma\+\_\+type$<$ double $>$$>$\+::type $\ast$}]{ }\end{DoxyParamCaption})\hspace{0.3cm}{\ttfamily [inline]}}



Definition at line 44 of file get\+\_\+cython\+\_\+type.\+hpp.

\mbox{\label{namespacemlpack_1_1bindings_1_1python_aa707c93475e39855dbcbb979483fbadc}} 
\index{mlpack\+::bindings\+::python@{mlpack\+::bindings\+::python}!Get\+Cython\+Type$<$ int $>$@{Get\+Cython\+Type$<$ int $>$}}
\index{Get\+Cython\+Type$<$ int $>$@{Get\+Cython\+Type$<$ int $>$}!mlpack\+::bindings\+::python@{mlpack\+::bindings\+::python}}
\subsubsection{Get\+Cython\+Type$<$ int $>$()}
{\footnotesize\ttfamily std\+::string \textbf{ mlpack\+::bindings\+::python\+::\+Get\+Cython\+Type}$<$ int $>$ (\begin{DoxyParamCaption}\item[{const \textbf{ util\+::\+Param\+Data} \&}]{,  }\item[{const typename boost\+::disable\+\_\+if$<$ \textbf{ util\+::\+Is\+Std\+Vector}$<$ int $>$$>$\+::type $\ast$}]{,  }\item[{const typename boost\+::disable\+\_\+if$<$ \textbf{ data\+::\+Has\+Serialize}$<$ int $>$$>$\+::type $\ast$}]{,  }\item[{const typename boost\+::disable\+\_\+if$<$ arma\+::is\+\_\+arma\+\_\+type$<$ int $>$$>$\+::type $\ast$}]{ }\end{DoxyParamCaption})\hspace{0.3cm}{\ttfamily [inline]}}



Definition at line 34 of file get\+\_\+cython\+\_\+type.\+hpp.

\mbox{\label{namespacemlpack_1_1bindings_1_1python_ae62451c1f876af0ad2939ea7360e6945}} 
\index{mlpack\+::bindings\+::python@{mlpack\+::bindings\+::python}!Get\+Cython\+Type$<$ size\+\_\+t $>$@{Get\+Cython\+Type$<$ size\+\_\+t $>$}}
\index{Get\+Cython\+Type$<$ size\+\_\+t $>$@{Get\+Cython\+Type$<$ size\+\_\+t $>$}!mlpack\+::bindings\+::python@{mlpack\+::bindings\+::python}}
\subsubsection{Get\+Cython\+Type$<$ size\+\_\+t $>$()}
{\footnotesize\ttfamily std\+::string \textbf{ mlpack\+::bindings\+::python\+::\+Get\+Cython\+Type}$<$ size\+\_\+t $>$ (\begin{DoxyParamCaption}\item[{const \textbf{ util\+::\+Param\+Data} \&}]{,  }\item[{const typename boost\+::disable\+\_\+if$<$ \textbf{ util\+::\+Is\+Std\+Vector}$<$ size\+\_\+t $>$$>$\+::type $\ast$}]{,  }\item[{const typename boost\+::disable\+\_\+if$<$ \textbf{ data\+::\+Has\+Serialize}$<$ size\+\_\+t $>$$>$\+::type $\ast$}]{,  }\item[{const typename boost\+::disable\+\_\+if$<$ arma\+::is\+\_\+arma\+\_\+type$<$ size\+\_\+t $>$$>$\+::type $\ast$}]{ }\end{DoxyParamCaption})\hspace{0.3cm}{\ttfamily [inline]}}



Definition at line 64 of file get\+\_\+cython\+\_\+type.\+hpp.

\mbox{\label{namespacemlpack_1_1bindings_1_1python_ad1b2890bf129704b788798560f110b9d}} 
\index{mlpack\+::bindings\+::python@{mlpack\+::bindings\+::python}!Get\+Cython\+Type$<$ std\+::string $>$@{Get\+Cython\+Type$<$ std\+::string $>$}}
\index{Get\+Cython\+Type$<$ std\+::string $>$@{Get\+Cython\+Type$<$ std\+::string $>$}!mlpack\+::bindings\+::python@{mlpack\+::bindings\+::python}}
\subsubsection{Get\+Cython\+Type$<$ std\+::string $>$()}
{\footnotesize\ttfamily std\+::string \textbf{ mlpack\+::bindings\+::python\+::\+Get\+Cython\+Type}$<$ std\+::string $>$ (\begin{DoxyParamCaption}\item[{const \textbf{ util\+::\+Param\+Data} \&}]{,  }\item[{const typename boost\+::disable\+\_\+if$<$ \textbf{ util\+::\+Is\+Std\+Vector}$<$ std\+::string $>$$>$\+::type $\ast$}]{,  }\item[{const typename boost\+::disable\+\_\+if$<$ \textbf{ data\+::\+Has\+Serialize}$<$ std\+::string $>$$>$\+::type $\ast$}]{,  }\item[{const typename boost\+::disable\+\_\+if$<$ arma\+::is\+\_\+arma\+\_\+type$<$ std\+::string $>$$>$\+::type $\ast$}]{ }\end{DoxyParamCaption})\hspace{0.3cm}{\ttfamily [inline]}}



Definition at line 54 of file get\+\_\+cython\+\_\+type.\+hpp.

\mbox{\label{namespacemlpack_1_1bindings_1_1python_a62060e3eede9c45540c426105c552ef4}} 
\index{mlpack\+::bindings\+::python@{mlpack\+::bindings\+::python}!Get\+Numpy\+Type@{Get\+Numpy\+Type}}
\index{Get\+Numpy\+Type@{Get\+Numpy\+Type}!mlpack\+::bindings\+::python@{mlpack\+::bindings\+::python}}
\subsubsection{Get\+Numpy\+Type()}
{\footnotesize\ttfamily std\+::string mlpack\+::bindings\+::python\+::\+Get\+Numpy\+Type (\begin{DoxyParamCaption}{ }\end{DoxyParamCaption})\hspace{0.3cm}{\ttfamily [inline]}}



Definition at line 22 of file get\+\_\+numpy\+\_\+type.\+hpp.

\mbox{\label{namespacemlpack_1_1bindings_1_1python_a1c682bf6da1b0aec259c40f05e6d0ad5}} 
\index{mlpack\+::bindings\+::python@{mlpack\+::bindings\+::python}!Get\+Numpy\+Type$<$ double $>$@{Get\+Numpy\+Type$<$ double $>$}}
\index{Get\+Numpy\+Type$<$ double $>$@{Get\+Numpy\+Type$<$ double $>$}!mlpack\+::bindings\+::python@{mlpack\+::bindings\+::python}}
\subsubsection{Get\+Numpy\+Type$<$ double $>$()}
{\footnotesize\ttfamily std\+::string \textbf{ mlpack\+::bindings\+::python\+::\+Get\+Numpy\+Type}$<$ double $>$ (\begin{DoxyParamCaption}{ }\end{DoxyParamCaption})\hspace{0.3cm}{\ttfamily [inline]}}



Definition at line 28 of file get\+\_\+numpy\+\_\+type.\+hpp.

\mbox{\label{namespacemlpack_1_1bindings_1_1python_a9be0b495a6023db3314fd406a9c7d1cb}} 
\index{mlpack\+::bindings\+::python@{mlpack\+::bindings\+::python}!Get\+Numpy\+Type$<$ size\+\_\+t $>$@{Get\+Numpy\+Type$<$ size\+\_\+t $>$}}
\index{Get\+Numpy\+Type$<$ size\+\_\+t $>$@{Get\+Numpy\+Type$<$ size\+\_\+t $>$}!mlpack\+::bindings\+::python@{mlpack\+::bindings\+::python}}
\subsubsection{Get\+Numpy\+Type$<$ size\+\_\+t $>$()}
{\footnotesize\ttfamily std\+::string \textbf{ mlpack\+::bindings\+::python\+::\+Get\+Numpy\+Type}$<$ size\+\_\+t $>$ (\begin{DoxyParamCaption}{ }\end{DoxyParamCaption})\hspace{0.3cm}{\ttfamily [inline]}}



Definition at line 34 of file get\+\_\+numpy\+\_\+type.\+hpp.

\mbox{\label{namespacemlpack_1_1bindings_1_1python_acf355ab2766c7b6ce900b02402e8b22f}} 
\index{mlpack\+::bindings\+::python@{mlpack\+::bindings\+::python}!Get\+Numpy\+Type\+Char@{Get\+Numpy\+Type\+Char}}
\index{Get\+Numpy\+Type\+Char@{Get\+Numpy\+Type\+Char}!mlpack\+::bindings\+::python@{mlpack\+::bindings\+::python}}
\subsubsection{Get\+Numpy\+Type\+Char()}
{\footnotesize\ttfamily std\+::string mlpack\+::bindings\+::python\+::\+Get\+Numpy\+Type\+Char (\begin{DoxyParamCaption}{ }\end{DoxyParamCaption})\hspace{0.3cm}{\ttfamily [inline]}}



Definition at line 23 of file get\+\_\+numpy\+\_\+type\+\_\+char.\+hpp.

\mbox{\label{namespacemlpack_1_1bindings_1_1python_ab65db7770f63b8cd83a53ebb8764138c}} 
\index{mlpack\+::bindings\+::python@{mlpack\+::bindings\+::python}!Get\+Numpy\+Type\+Char$<$ arma\+::\+Col$<$ size\+\_\+t $>$ $>$@{Get\+Numpy\+Type\+Char$<$ arma\+::\+Col$<$ size\+\_\+t $>$ $>$}}
\index{Get\+Numpy\+Type\+Char$<$ arma\+::\+Col$<$ size\+\_\+t $>$ $>$@{Get\+Numpy\+Type\+Char$<$ arma\+::\+Col$<$ size\+\_\+t $>$ $>$}!mlpack\+::bindings\+::python@{mlpack\+::bindings\+::python}}
\subsubsection{Get\+Numpy\+Type\+Char$<$ arma\+::\+Col$<$ size\+\_\+t $>$ $>$()}
{\footnotesize\ttfamily std\+::string \textbf{ mlpack\+::bindings\+::python\+::\+Get\+Numpy\+Type\+Char}$<$ arma\+::\+Col$<$ size\+\_\+t $>$ $>$ (\begin{DoxyParamCaption}{ }\end{DoxyParamCaption})\hspace{0.3cm}{\ttfamily [inline]}}



Definition at line 36 of file get\+\_\+numpy\+\_\+type\+\_\+char.\+hpp.

\mbox{\label{namespacemlpack_1_1bindings_1_1python_ac3ff131af41b583e1e0312f0cadd85d1}} 
\index{mlpack\+::bindings\+::python@{mlpack\+::bindings\+::python}!Get\+Numpy\+Type\+Char$<$ arma\+::mat $>$@{Get\+Numpy\+Type\+Char$<$ arma\+::mat $>$}}
\index{Get\+Numpy\+Type\+Char$<$ arma\+::mat $>$@{Get\+Numpy\+Type\+Char$<$ arma\+::mat $>$}!mlpack\+::bindings\+::python@{mlpack\+::bindings\+::python}}
\subsubsection{Get\+Numpy\+Type\+Char$<$ arma\+::mat $>$()}
{\footnotesize\ttfamily std\+::string \textbf{ mlpack\+::bindings\+::python\+::\+Get\+Numpy\+Type\+Char}$<$ arma\+::mat $>$ (\begin{DoxyParamCaption}{ }\end{DoxyParamCaption})\hspace{0.3cm}{\ttfamily [inline]}}



Definition at line 49 of file get\+\_\+numpy\+\_\+type\+\_\+char.\+hpp.

\mbox{\label{namespacemlpack_1_1bindings_1_1python_a7af32159e75699310ce38618deb652d2}} 
\index{mlpack\+::bindings\+::python@{mlpack\+::bindings\+::python}!Get\+Numpy\+Type\+Char$<$ arma\+::\+Mat$<$ size\+\_\+t $>$ $>$@{Get\+Numpy\+Type\+Char$<$ arma\+::\+Mat$<$ size\+\_\+t $>$ $>$}}
\index{Get\+Numpy\+Type\+Char$<$ arma\+::\+Mat$<$ size\+\_\+t $>$ $>$@{Get\+Numpy\+Type\+Char$<$ arma\+::\+Mat$<$ size\+\_\+t $>$ $>$}!mlpack\+::bindings\+::python@{mlpack\+::bindings\+::python}}
\subsubsection{Get\+Numpy\+Type\+Char$<$ arma\+::\+Mat$<$ size\+\_\+t $>$ $>$()}
{\footnotesize\ttfamily std\+::string \textbf{ mlpack\+::bindings\+::python\+::\+Get\+Numpy\+Type\+Char}$<$ arma\+::\+Mat$<$ size\+\_\+t $>$ $>$ (\begin{DoxyParamCaption}{ }\end{DoxyParamCaption})\hspace{0.3cm}{\ttfamily [inline]}}



Definition at line 30 of file get\+\_\+numpy\+\_\+type\+\_\+char.\+hpp.

\mbox{\label{namespacemlpack_1_1bindings_1_1python_a30d1acd19b418db8d6ae54695cbc075f}} 
\index{mlpack\+::bindings\+::python@{mlpack\+::bindings\+::python}!Get\+Numpy\+Type\+Char$<$ arma\+::\+Row$<$ size\+\_\+t $>$ $>$@{Get\+Numpy\+Type\+Char$<$ arma\+::\+Row$<$ size\+\_\+t $>$ $>$}}
\index{Get\+Numpy\+Type\+Char$<$ arma\+::\+Row$<$ size\+\_\+t $>$ $>$@{Get\+Numpy\+Type\+Char$<$ arma\+::\+Row$<$ size\+\_\+t $>$ $>$}!mlpack\+::bindings\+::python@{mlpack\+::bindings\+::python}}
\subsubsection{Get\+Numpy\+Type\+Char$<$ arma\+::\+Row$<$ size\+\_\+t $>$ $>$()}
{\footnotesize\ttfamily std\+::string \textbf{ mlpack\+::bindings\+::python\+::\+Get\+Numpy\+Type\+Char}$<$ arma\+::\+Row$<$ size\+\_\+t $>$ $>$ (\begin{DoxyParamCaption}{ }\end{DoxyParamCaption})\hspace{0.3cm}{\ttfamily [inline]}}



Definition at line 42 of file get\+\_\+numpy\+\_\+type\+\_\+char.\+hpp.

\mbox{\label{namespacemlpack_1_1bindings_1_1python_a9cd3725915ba360fa07cf321400a181e}} 
\index{mlpack\+::bindings\+::python@{mlpack\+::bindings\+::python}!Get\+Numpy\+Type\+Char$<$ arma\+::rowvec $>$@{Get\+Numpy\+Type\+Char$<$ arma\+::rowvec $>$}}
\index{Get\+Numpy\+Type\+Char$<$ arma\+::rowvec $>$@{Get\+Numpy\+Type\+Char$<$ arma\+::rowvec $>$}!mlpack\+::bindings\+::python@{mlpack\+::bindings\+::python}}
\subsubsection{Get\+Numpy\+Type\+Char$<$ arma\+::rowvec $>$()}
{\footnotesize\ttfamily std\+::string \textbf{ mlpack\+::bindings\+::python\+::\+Get\+Numpy\+Type\+Char}$<$ arma\+::rowvec $>$ (\begin{DoxyParamCaption}{ }\end{DoxyParamCaption})\hspace{0.3cm}{\ttfamily [inline]}}



Definition at line 61 of file get\+\_\+numpy\+\_\+type\+\_\+char.\+hpp.

\mbox{\label{namespacemlpack_1_1bindings_1_1python_ae37e41e8b171c5a1f95a567d5f2d05fa}} 
\index{mlpack\+::bindings\+::python@{mlpack\+::bindings\+::python}!Get\+Numpy\+Type\+Char$<$ arma\+::vec $>$@{Get\+Numpy\+Type\+Char$<$ arma\+::vec $>$}}
\index{Get\+Numpy\+Type\+Char$<$ arma\+::vec $>$@{Get\+Numpy\+Type\+Char$<$ arma\+::vec $>$}!mlpack\+::bindings\+::python@{mlpack\+::bindings\+::python}}
\subsubsection{Get\+Numpy\+Type\+Char$<$ arma\+::vec $>$()}
{\footnotesize\ttfamily std\+::string \textbf{ mlpack\+::bindings\+::python\+::\+Get\+Numpy\+Type\+Char}$<$ arma\+::vec $>$ (\begin{DoxyParamCaption}{ }\end{DoxyParamCaption})\hspace{0.3cm}{\ttfamily [inline]}}



Definition at line 55 of file get\+\_\+numpy\+\_\+type\+\_\+char.\+hpp.

\mbox{\label{namespacemlpack_1_1bindings_1_1python_a84a190c530a03155d1bf848ea33305ab}} 
\index{mlpack\+::bindings\+::python@{mlpack\+::bindings\+::python}!Get\+Param@{Get\+Param}}
\index{Get\+Param@{Get\+Param}!mlpack\+::bindings\+::python@{mlpack\+::bindings\+::python}}
\subsubsection{Get\+Param()}
{\footnotesize\ttfamily void mlpack\+::bindings\+::python\+::\+Get\+Param (\begin{DoxyParamCaption}\item[{const \textbf{ util\+::\+Param\+Data} \&}]{d,  }\item[{const void $\ast$}]{,  }\item[{void $\ast$}]{output }\end{DoxyParamCaption})}



All Python binding types are exactly what is held in the Param\+Data, so no special handling is necessary. 



Definition at line 26 of file get\+\_\+param.\+hpp.



References Param\+Data\+::value.

\mbox{\label{namespacemlpack_1_1bindings_1_1python_a210299e82b16ceb65a4d7c0717a9d284}} 
\index{mlpack\+::bindings\+::python@{mlpack\+::bindings\+::python}!Get\+Printable\+Param@{Get\+Printable\+Param}}
\index{Get\+Printable\+Param@{Get\+Printable\+Param}!mlpack\+::bindings\+::python@{mlpack\+::bindings\+::python}}
\subsubsection{Get\+Printable\+Param()\hspace{0.1cm}{\footnotesize\ttfamily [1/6]}}
{\footnotesize\ttfamily std\+::string mlpack\+::bindings\+::python\+::\+Get\+Printable\+Param (\begin{DoxyParamCaption}\item[{const \textbf{ util\+::\+Param\+Data} \&}]{data,  }\item[{const typename boost\+::disable\+\_\+if$<$ arma\+::is\+\_\+arma\+\_\+type$<$ T $>$$>$\+::type $\ast$}]{ = {\ttfamily 0},  }\item[{const typename boost\+::disable\+\_\+if$<$ \textbf{ util\+::\+Is\+Std\+Vector}$<$ T $>$$>$\+::type $\ast$}]{ = {\ttfamily 0},  }\item[{const typename boost\+::disable\+\_\+if$<$ \textbf{ data\+::\+Has\+Serialize}$<$ T $>$$>$\+::type $\ast$}]{ = {\ttfamily 0},  }\item[{const typename boost\+::disable\+\_\+if$<$ std\+::is\+\_\+same$<$ T, std\+::tuple$<$ \textbf{ data\+::\+Dataset\+Info}, arma\+::mat $>$$>$$>$\+::type $\ast$}]{ = {\ttfamily 0} }\end{DoxyParamCaption})}



Print an option of a simple type. 

Print an option. 

Definition at line 26 of file get\+\_\+printable\+\_\+param.\+hpp.



References Param\+Data\+::value.

\mbox{\label{namespacemlpack_1_1bindings_1_1python_ab9add63210479d0d38d0ff468df3dc75}} 
\index{mlpack\+::bindings\+::python@{mlpack\+::bindings\+::python}!Get\+Printable\+Param@{Get\+Printable\+Param}}
\index{Get\+Printable\+Param@{Get\+Printable\+Param}!mlpack\+::bindings\+::python@{mlpack\+::bindings\+::python}}
\subsubsection{Get\+Printable\+Param()\hspace{0.1cm}{\footnotesize\ttfamily [2/6]}}
{\footnotesize\ttfamily std\+::string mlpack\+::bindings\+::python\+::\+Get\+Printable\+Param (\begin{DoxyParamCaption}\item[{const \textbf{ util\+::\+Param\+Data} \&}]{data,  }\item[{const typename boost\+::enable\+\_\+if$<$ \textbf{ util\+::\+Is\+Std\+Vector}$<$ T $>$$>$\+::type $\ast$}]{ = {\ttfamily 0} }\end{DoxyParamCaption})}



Print a vector option, with spaces between it. 



Definition at line 43 of file get\+\_\+printable\+\_\+param.\+hpp.



References Param\+Data\+::value.

\mbox{\label{namespacemlpack_1_1bindings_1_1python_a0b2b17b9d08d849c4b584a6b665a0901}} 
\index{mlpack\+::bindings\+::python@{mlpack\+::bindings\+::python}!Get\+Printable\+Param@{Get\+Printable\+Param}}
\index{Get\+Printable\+Param@{Get\+Printable\+Param}!mlpack\+::bindings\+::python@{mlpack\+::bindings\+::python}}
\subsubsection{Get\+Printable\+Param()\hspace{0.1cm}{\footnotesize\ttfamily [3/6]}}
{\footnotesize\ttfamily std\+::string mlpack\+::bindings\+::python\+::\+Get\+Printable\+Param (\begin{DoxyParamCaption}\item[{const \textbf{ util\+::\+Param\+Data} \&}]{data,  }\item[{const typename boost\+::enable\+\_\+if$<$ arma\+::is\+\_\+arma\+\_\+type$<$ T $>$$>$\+::type $\ast$}]{ = {\ttfamily 0} }\end{DoxyParamCaption})}



Print a matrix option (this prints its size). 

Print a matrix option (this just prints the filename). 

Definition at line 59 of file get\+\_\+printable\+\_\+param.\+hpp.



References Param\+Data\+::value.

\mbox{\label{namespacemlpack_1_1bindings_1_1python_a37e4f910bd7d696602b21c5879e60019}} 
\index{mlpack\+::bindings\+::python@{mlpack\+::bindings\+::python}!Get\+Printable\+Param@{Get\+Printable\+Param}}
\index{Get\+Printable\+Param@{Get\+Printable\+Param}!mlpack\+::bindings\+::python@{mlpack\+::bindings\+::python}}
\subsubsection{Get\+Printable\+Param()\hspace{0.1cm}{\footnotesize\ttfamily [4/6]}}
{\footnotesize\ttfamily std\+::string mlpack\+::bindings\+::python\+::\+Get\+Printable\+Param (\begin{DoxyParamCaption}\item[{const \textbf{ util\+::\+Param\+Data} \&}]{data,  }\item[{const typename boost\+::disable\+\_\+if$<$ arma\+::is\+\_\+arma\+\_\+type$<$ T $>$$>$\+::type $\ast$}]{ = {\ttfamily 0},  }\item[{const typename boost\+::enable\+\_\+if$<$ \textbf{ data\+::\+Has\+Serialize}$<$ T $>$$>$\+::type $\ast$}]{ = {\ttfamily 0} }\end{DoxyParamCaption})}



Print a serializable class option (this prints the class name). 

Print a serializable class option (this just prints the filename).

Print a model option (this just prints the filename). 

Definition at line 75 of file get\+\_\+printable\+\_\+param.\+hpp.



References Param\+Data\+::cpp\+Type, and Param\+Data\+::value.

\mbox{\label{namespacemlpack_1_1bindings_1_1python_ac37afd675bc988bdd748205dc404834f}} 
\index{mlpack\+::bindings\+::python@{mlpack\+::bindings\+::python}!Get\+Printable\+Param@{Get\+Printable\+Param}}
\index{Get\+Printable\+Param@{Get\+Printable\+Param}!mlpack\+::bindings\+::python@{mlpack\+::bindings\+::python}}
\subsubsection{Get\+Printable\+Param()\hspace{0.1cm}{\footnotesize\ttfamily [5/6]}}
{\footnotesize\ttfamily std\+::string mlpack\+::bindings\+::python\+::\+Get\+Printable\+Param (\begin{DoxyParamCaption}\item[{const \textbf{ util\+::\+Param\+Data} \&}]{data,  }\item[{const typename boost\+::enable\+\_\+if$<$ std\+::is\+\_\+same$<$ T, std\+::tuple$<$ \textbf{ data\+::\+Dataset\+Info}, arma\+::mat $>$$>$$>$\+::type $\ast$}]{ = {\ttfamily 0} }\end{DoxyParamCaption})}



Print a combination Dataset\+Info/matrix parameter. 

Print a mapped matrix option (this just prints the filename). 

Definition at line 89 of file get\+\_\+printable\+\_\+param.\+hpp.



References Param\+Data\+::value.

\mbox{\label{namespacemlpack_1_1bindings_1_1python_a93ea4786af791d2b32c13da554b1fd11}} 
\index{mlpack\+::bindings\+::python@{mlpack\+::bindings\+::python}!Get\+Printable\+Param@{Get\+Printable\+Param}}
\index{Get\+Printable\+Param@{Get\+Printable\+Param}!mlpack\+::bindings\+::python@{mlpack\+::bindings\+::python}}
\subsubsection{Get\+Printable\+Param()\hspace{0.1cm}{\footnotesize\ttfamily [6/6]}}
{\footnotesize\ttfamily void mlpack\+::bindings\+::python\+::\+Get\+Printable\+Param (\begin{DoxyParamCaption}\item[{const \textbf{ util\+::\+Param\+Data} \&}]{data,  }\item[{const void $\ast$}]{,  }\item[{void $\ast$}]{output }\end{DoxyParamCaption})}



Print an option into a std\+::string. 

This should print a short, one-\/line representation of the object. The string will be stored in the output pointer.


\begin{DoxyParams}{Parameters}
{\em data} & Parameter data struct. \\
\hline
{\em input} & Unused parameter. \\
\hline
{\em output} & Output storage for the string. \\
\hline
\end{DoxyParams}


Definition at line 114 of file get\+\_\+printable\+\_\+param.\+hpp.

\mbox{\label{namespacemlpack_1_1bindings_1_1python_a5a4dcacec4e3e18bad9c94df79e7c8e3}} 
\index{mlpack\+::bindings\+::python@{mlpack\+::bindings\+::python}!Get\+Printable\+Type@{Get\+Printable\+Type}}
\index{Get\+Printable\+Type@{Get\+Printable\+Type}!mlpack\+::bindings\+::python@{mlpack\+::bindings\+::python}}
\subsubsection{Get\+Printable\+Type()\hspace{0.1cm}{\footnotesize\ttfamily [1/6]}}
{\footnotesize\ttfamily std\+::string mlpack\+::bindings\+::python\+::\+Get\+Printable\+Type (\begin{DoxyParamCaption}\item[{const \textbf{ util\+::\+Param\+Data} \&}]{,  }\item[{const typename boost\+::disable\+\_\+if$<$ \textbf{ util\+::\+Is\+Std\+Vector}$<$ T $>$$>$\+::type $\ast$}]{ = {\ttfamily 0},  }\item[{const typename boost\+::disable\+\_\+if$<$ \textbf{ data\+::\+Has\+Serialize}$<$ T $>$$>$\+::type $\ast$}]{ = {\ttfamily 0},  }\item[{const typename boost\+::disable\+\_\+if$<$ arma\+::is\+\_\+arma\+\_\+type$<$ T $>$$>$\+::type $\ast$}]{ = {\ttfamily 0},  }\item[{const typename boost\+::disable\+\_\+if$<$ std\+::is\+\_\+same$<$ T, std\+::tuple$<$ \textbf{ data\+::\+Dataset\+Info}, arma\+::mat $>$$>$$>$\+::type $\ast$}]{ = {\ttfamily 0} }\end{DoxyParamCaption})\hspace{0.3cm}{\ttfamily [inline]}}

\mbox{\label{namespacemlpack_1_1bindings_1_1python_af4f02862e9b5a8cff9115f8c40898116}} 
\index{mlpack\+::bindings\+::python@{mlpack\+::bindings\+::python}!Get\+Printable\+Type@{Get\+Printable\+Type}}
\index{Get\+Printable\+Type@{Get\+Printable\+Type}!mlpack\+::bindings\+::python@{mlpack\+::bindings\+::python}}
\subsubsection{Get\+Printable\+Type()\hspace{0.1cm}{\footnotesize\ttfamily [2/6]}}
{\footnotesize\ttfamily std\+::string mlpack\+::bindings\+::python\+::\+Get\+Printable\+Type (\begin{DoxyParamCaption}\item[{const \textbf{ util\+::\+Param\+Data} \&}]{d,  }\item[{const typename boost\+::enable\+\_\+if$<$ \textbf{ util\+::\+Is\+Std\+Vector}$<$ T $>$$>$\+::type $\ast$}]{ = {\ttfamily 0},  }\item[{const typename boost\+::disable\+\_\+if$<$ std\+::is\+\_\+same$<$ T, std\+::tuple$<$ \textbf{ data\+::\+Dataset\+Info}, arma\+::mat $>$$>$$>$\+::type $\ast$}]{ = {\ttfamily 0} }\end{DoxyParamCaption})\hspace{0.3cm}{\ttfamily [inline]}}

\mbox{\label{namespacemlpack_1_1bindings_1_1python_a6a1988ae06fd42345e4f3185d96c48ee}} 
\index{mlpack\+::bindings\+::python@{mlpack\+::bindings\+::python}!Get\+Printable\+Type@{Get\+Printable\+Type}}
\index{Get\+Printable\+Type@{Get\+Printable\+Type}!mlpack\+::bindings\+::python@{mlpack\+::bindings\+::python}}
\subsubsection{Get\+Printable\+Type()\hspace{0.1cm}{\footnotesize\ttfamily [3/6]}}
{\footnotesize\ttfamily std\+::string mlpack\+::bindings\+::python\+::\+Get\+Printable\+Type (\begin{DoxyParamCaption}\item[{const \textbf{ util\+::\+Param\+Data} \&}]{,  }\item[{const typename boost\+::enable\+\_\+if$<$ arma\+::is\+\_\+arma\+\_\+type$<$ T $>$$>$\+::type $\ast$}]{ = {\ttfamily 0},  }\item[{const typename boost\+::disable\+\_\+if$<$ std\+::is\+\_\+same$<$ T, std\+::tuple$<$ \textbf{ data\+::\+Dataset\+Info}, arma\+::mat $>$$>$$>$\+::type $\ast$}]{ = {\ttfamily 0} }\end{DoxyParamCaption})\hspace{0.3cm}{\ttfamily [inline]}}

\mbox{\label{namespacemlpack_1_1bindings_1_1python_ac59769d5075af6991c1d1cfc9fc8f6be}} 
\index{mlpack\+::bindings\+::python@{mlpack\+::bindings\+::python}!Get\+Printable\+Type@{Get\+Printable\+Type}}
\index{Get\+Printable\+Type@{Get\+Printable\+Type}!mlpack\+::bindings\+::python@{mlpack\+::bindings\+::python}}
\subsubsection{Get\+Printable\+Type()\hspace{0.1cm}{\footnotesize\ttfamily [4/6]}}
{\footnotesize\ttfamily std\+::string mlpack\+::bindings\+::python\+::\+Get\+Printable\+Type (\begin{DoxyParamCaption}\item[{const \textbf{ util\+::\+Param\+Data} \&}]{,  }\item[{const typename boost\+::enable\+\_\+if$<$ std\+::is\+\_\+same$<$ T, std\+::tuple$<$ \textbf{ data\+::\+Dataset\+Info}, arma\+::mat $>$$>$$>$\+::type $\ast$}]{ = {\ttfamily 0} }\end{DoxyParamCaption})\hspace{0.3cm}{\ttfamily [inline]}}

\mbox{\label{namespacemlpack_1_1bindings_1_1python_a81d20f9520b92c0dec0b7f8fdd112696}} 
\index{mlpack\+::bindings\+::python@{mlpack\+::bindings\+::python}!Get\+Printable\+Type@{Get\+Printable\+Type}}
\index{Get\+Printable\+Type@{Get\+Printable\+Type}!mlpack\+::bindings\+::python@{mlpack\+::bindings\+::python}}
\subsubsection{Get\+Printable\+Type()\hspace{0.1cm}{\footnotesize\ttfamily [5/6]}}
{\footnotesize\ttfamily std\+::string mlpack\+::bindings\+::python\+::\+Get\+Printable\+Type (\begin{DoxyParamCaption}\item[{const \textbf{ util\+::\+Param\+Data} \&}]{d,  }\item[{const typename boost\+::disable\+\_\+if$<$ arma\+::is\+\_\+arma\+\_\+type$<$ T $>$$>$\+::type $\ast$}]{ = {\ttfamily 0},  }\item[{const typename boost\+::enable\+\_\+if$<$ \textbf{ data\+::\+Has\+Serialize}$<$ T $>$$>$\+::type $\ast$}]{ = {\ttfamily 0},  }\item[{const typename boost\+::disable\+\_\+if$<$ std\+::is\+\_\+same$<$ T, std\+::tuple$<$ \textbf{ data\+::\+Dataset\+Info}, arma\+::mat $>$$>$$>$\+::type $\ast$}]{ = {\ttfamily 0} }\end{DoxyParamCaption})\hspace{0.3cm}{\ttfamily [inline]}}

\mbox{\label{namespacemlpack_1_1bindings_1_1python_a20acec492b343d482f33ad3c5ea84310}} 
\index{mlpack\+::bindings\+::python@{mlpack\+::bindings\+::python}!Get\+Printable\+Type@{Get\+Printable\+Type}}
\index{Get\+Printable\+Type@{Get\+Printable\+Type}!mlpack\+::bindings\+::python@{mlpack\+::bindings\+::python}}
\subsubsection{Get\+Printable\+Type()\hspace{0.1cm}{\footnotesize\ttfamily [6/6]}}
{\footnotesize\ttfamily void mlpack\+::bindings\+::python\+::\+Get\+Printable\+Type (\begin{DoxyParamCaption}\item[{const \textbf{ util\+::\+Param\+Data} \&}]{d,  }\item[{const void $\ast$}]{,  }\item[{void $\ast$}]{output }\end{DoxyParamCaption})}



Definition at line 106 of file get\+\_\+printable\+\_\+type.\+hpp.

\mbox{\label{namespacemlpack_1_1bindings_1_1python_afdb43ca5b338c4856ad4507878b9208c}} 
\index{mlpack\+::bindings\+::python@{mlpack\+::bindings\+::python}!Get\+Printable\+Type$<$ bool $>$@{Get\+Printable\+Type$<$ bool $>$}}
\index{Get\+Printable\+Type$<$ bool $>$@{Get\+Printable\+Type$<$ bool $>$}!mlpack\+::bindings\+::python@{mlpack\+::bindings\+::python}}
\subsubsection{Get\+Printable\+Type$<$ bool $>$()}
{\footnotesize\ttfamily std\+::string \textbf{ mlpack\+::bindings\+::python\+::\+Get\+Printable\+Type}$<$ bool $>$ (\begin{DoxyParamCaption}\item[{const \textbf{ util\+::\+Param\+Data} \&}]{,  }\item[{const typename boost\+::disable\+\_\+if$<$ \textbf{ util\+::\+Is\+Std\+Vector}$<$ bool $>$$>$\+::type $\ast$}]{,  }\item[{const typename boost\+::disable\+\_\+if$<$ \textbf{ data\+::\+Has\+Serialize}$<$ bool $>$$>$\+::type $\ast$}]{,  }\item[{const typename boost\+::disable\+\_\+if$<$ arma\+::is\+\_\+arma\+\_\+type$<$ bool $>$$>$\+::type $\ast$}]{,  }\item[{const typename boost\+::disable\+\_\+if$<$ std\+::is\+\_\+same$<$ bool, std\+::tuple$<$ \textbf{ data\+::\+Dataset\+Info}, arma\+::mat $>$$>$$>$\+::type $\ast$}]{ }\end{DoxyParamCaption})\hspace{0.3cm}{\ttfamily [inline]}}

\mbox{\label{namespacemlpack_1_1bindings_1_1python_a8d32b02a866077d3e1ae9712234d3bf4}} 
\index{mlpack\+::bindings\+::python@{mlpack\+::bindings\+::python}!Get\+Printable\+Type$<$ double $>$@{Get\+Printable\+Type$<$ double $>$}}
\index{Get\+Printable\+Type$<$ double $>$@{Get\+Printable\+Type$<$ double $>$}!mlpack\+::bindings\+::python@{mlpack\+::bindings\+::python}}
\subsubsection{Get\+Printable\+Type$<$ double $>$()}
{\footnotesize\ttfamily std\+::string \textbf{ mlpack\+::bindings\+::python\+::\+Get\+Printable\+Type}$<$ double $>$ (\begin{DoxyParamCaption}\item[{const \textbf{ util\+::\+Param\+Data} \&}]{,  }\item[{const typename boost\+::disable\+\_\+if$<$ \textbf{ util\+::\+Is\+Std\+Vector}$<$ double $>$$>$\+::type $\ast$}]{,  }\item[{const typename boost\+::disable\+\_\+if$<$ \textbf{ data\+::\+Has\+Serialize}$<$ double $>$$>$\+::type $\ast$}]{,  }\item[{const typename boost\+::disable\+\_\+if$<$ arma\+::is\+\_\+arma\+\_\+type$<$ double $>$$>$\+::type $\ast$}]{,  }\item[{const typename boost\+::disable\+\_\+if$<$ std\+::is\+\_\+same$<$ double, std\+::tuple$<$ \textbf{ data\+::\+Dataset\+Info}, arma\+::mat $>$$>$$>$\+::type $\ast$}]{ }\end{DoxyParamCaption})\hspace{0.3cm}{\ttfamily [inline]}}

\mbox{\label{namespacemlpack_1_1bindings_1_1python_ab74a75e32bd8da485a44351ac3509d99}} 
\index{mlpack\+::bindings\+::python@{mlpack\+::bindings\+::python}!Get\+Printable\+Type$<$ int $>$@{Get\+Printable\+Type$<$ int $>$}}
\index{Get\+Printable\+Type$<$ int $>$@{Get\+Printable\+Type$<$ int $>$}!mlpack\+::bindings\+::python@{mlpack\+::bindings\+::python}}
\subsubsection{Get\+Printable\+Type$<$ int $>$()}
{\footnotesize\ttfamily std\+::string \textbf{ mlpack\+::bindings\+::python\+::\+Get\+Printable\+Type}$<$ int $>$ (\begin{DoxyParamCaption}\item[{const \textbf{ util\+::\+Param\+Data} \&}]{,  }\item[{const typename boost\+::disable\+\_\+if$<$ \textbf{ util\+::\+Is\+Std\+Vector}$<$ int $>$$>$\+::type $\ast$}]{,  }\item[{const typename boost\+::disable\+\_\+if$<$ \textbf{ data\+::\+Has\+Serialize}$<$ int $>$$>$\+::type $\ast$}]{,  }\item[{const typename boost\+::disable\+\_\+if$<$ arma\+::is\+\_\+arma\+\_\+type$<$ int $>$$>$\+::type $\ast$}]{,  }\item[{const typename boost\+::disable\+\_\+if$<$ std\+::is\+\_\+same$<$ int, std\+::tuple$<$ \textbf{ data\+::\+Dataset\+Info}, arma\+::mat $>$$>$$>$\+::type $\ast$}]{ }\end{DoxyParamCaption})\hspace{0.3cm}{\ttfamily [inline]}}

\mbox{\label{namespacemlpack_1_1bindings_1_1python_ac2c0a611d9e0ad4caecc4e7abc4735e7}} 
\index{mlpack\+::bindings\+::python@{mlpack\+::bindings\+::python}!Get\+Printable\+Type$<$ size\+\_\+t $>$@{Get\+Printable\+Type$<$ size\+\_\+t $>$}}
\index{Get\+Printable\+Type$<$ size\+\_\+t $>$@{Get\+Printable\+Type$<$ size\+\_\+t $>$}!mlpack\+::bindings\+::python@{mlpack\+::bindings\+::python}}
\subsubsection{Get\+Printable\+Type$<$ size\+\_\+t $>$()}
{\footnotesize\ttfamily std\+::string \textbf{ mlpack\+::bindings\+::python\+::\+Get\+Printable\+Type}$<$ size\+\_\+t $>$ (\begin{DoxyParamCaption}\item[{const \textbf{ util\+::\+Param\+Data} \&}]{,  }\item[{const typename boost\+::disable\+\_\+if$<$ \textbf{ util\+::\+Is\+Std\+Vector}$<$ size\+\_\+t $>$$>$\+::type $\ast$}]{,  }\item[{const typename boost\+::disable\+\_\+if$<$ \textbf{ data\+::\+Has\+Serialize}$<$ size\+\_\+t $>$$>$\+::type $\ast$}]{,  }\item[{const typename boost\+::disable\+\_\+if$<$ arma\+::is\+\_\+arma\+\_\+type$<$ size\+\_\+t $>$$>$\+::type $\ast$}]{,  }\item[{const typename boost\+::disable\+\_\+if$<$ std\+::is\+\_\+same$<$ size\+\_\+t, std\+::tuple$<$ \textbf{ data\+::\+Dataset\+Info}, arma\+::mat $>$$>$$>$\+::type $\ast$}]{ }\end{DoxyParamCaption})\hspace{0.3cm}{\ttfamily [inline]}}

\mbox{\label{namespacemlpack_1_1bindings_1_1python_aeefa3940925e4aef937c345e7c0ec51c}} 
\index{mlpack\+::bindings\+::python@{mlpack\+::bindings\+::python}!Get\+Printable\+Type$<$ std\+::string $>$@{Get\+Printable\+Type$<$ std\+::string $>$}}
\index{Get\+Printable\+Type$<$ std\+::string $>$@{Get\+Printable\+Type$<$ std\+::string $>$}!mlpack\+::bindings\+::python@{mlpack\+::bindings\+::python}}
\subsubsection{Get\+Printable\+Type$<$ std\+::string $>$()}
{\footnotesize\ttfamily std\+::string \textbf{ mlpack\+::bindings\+::python\+::\+Get\+Printable\+Type}$<$ std\+::string $>$ (\begin{DoxyParamCaption}\item[{const \textbf{ util\+::\+Param\+Data} \&}]{,  }\item[{const typename boost\+::disable\+\_\+if$<$ \textbf{ util\+::\+Is\+Std\+Vector}$<$ std\+::string $>$$>$\+::type $\ast$}]{,  }\item[{const typename boost\+::disable\+\_\+if$<$ \textbf{ data\+::\+Has\+Serialize}$<$ std\+::string $>$$>$\+::type $\ast$}]{,  }\item[{const typename boost\+::disable\+\_\+if$<$ arma\+::is\+\_\+arma\+\_\+type$<$ std\+::string $>$$>$\+::type $\ast$}]{,  }\item[{const typename boost\+::disable\+\_\+if$<$ std\+::is\+\_\+same$<$ std\+::string, std\+::tuple$<$ \textbf{ data\+::\+Dataset\+Info}, arma\+::mat $>$$>$$>$\+::type $\ast$}]{ }\end{DoxyParamCaption})\hspace{0.3cm}{\ttfamily [inline]}}

\mbox{\label{namespacemlpack_1_1bindings_1_1python_aeb3b9177f23eddfc0d2d8d0b53518c67}} 
\index{mlpack\+::bindings\+::python@{mlpack\+::bindings\+::python}!Ignore\+Check@{Ignore\+Check}}
\index{Ignore\+Check@{Ignore\+Check}!mlpack\+::bindings\+::python@{mlpack\+::bindings\+::python}}
\subsubsection{Ignore\+Check()\hspace{0.1cm}{\footnotesize\ttfamily [1/3]}}
{\footnotesize\ttfamily bool mlpack\+::bindings\+::python\+::\+Ignore\+Check (\begin{DoxyParamCaption}\item[{const std\+::string \&}]{param\+Name }\end{DoxyParamCaption})\hspace{0.3cm}{\ttfamily [inline]}}



Print whether or not we should ignore a check on the given parameter. 

For Python bindings, we ignore any checks on output parameters, so if param\+Name is an output parameter, this returns true. \mbox{\label{namespacemlpack_1_1bindings_1_1python_a29e51ddbf3f2cb4ddbc4d0f40c1474fa}} 
\index{mlpack\+::bindings\+::python@{mlpack\+::bindings\+::python}!Ignore\+Check@{Ignore\+Check}}
\index{Ignore\+Check@{Ignore\+Check}!mlpack\+::bindings\+::python@{mlpack\+::bindings\+::python}}
\subsubsection{Ignore\+Check()\hspace{0.1cm}{\footnotesize\ttfamily [2/3]}}
{\footnotesize\ttfamily bool mlpack\+::bindings\+::python\+::\+Ignore\+Check (\begin{DoxyParamCaption}\item[{const std\+::vector$<$ std\+::string $>$ \&}]{constraints }\end{DoxyParamCaption})\hspace{0.3cm}{\ttfamily [inline]}}



Print whether or not we should ignore a check on the given set of constraints. 

For Python bindings, we ignore any checks on output parameters, so if any parameter is an output parameter, this returns true. \mbox{\label{namespacemlpack_1_1bindings_1_1python_a7025812e38208c8df59d1a3d56c7d3f3}} 
\index{mlpack\+::bindings\+::python@{mlpack\+::bindings\+::python}!Ignore\+Check@{Ignore\+Check}}
\index{Ignore\+Check@{Ignore\+Check}!mlpack\+::bindings\+::python@{mlpack\+::bindings\+::python}}
\subsubsection{Ignore\+Check()\hspace{0.1cm}{\footnotesize\ttfamily [3/3]}}
{\footnotesize\ttfamily bool mlpack\+::bindings\+::python\+::\+Ignore\+Check (\begin{DoxyParamCaption}\item[{const std\+::vector$<$ std\+::pair$<$ std\+::string, bool $>$$>$ \&}]{constraints,  }\item[{const std\+::string \&}]{param\+Name }\end{DoxyParamCaption})\hspace{0.3cm}{\ttfamily [inline]}}



Print whether or not we should ignore a check on the given set of constraints. 

For Python bindings, we ignore any checks on output parameters, so if any constraint parameter or the main parameter are output parameters, this returns true. \mbox{\label{namespacemlpack_1_1bindings_1_1python_a6dcf71db2c502ebac16d973826003f4f}} 
\index{mlpack\+::bindings\+::python@{mlpack\+::bindings\+::python}!Import\+Decl@{Import\+Decl}}
\index{Import\+Decl@{Import\+Decl}!mlpack\+::bindings\+::python@{mlpack\+::bindings\+::python}}
\subsubsection{Import\+Decl()\hspace{0.1cm}{\footnotesize\ttfamily [1/4]}}
{\footnotesize\ttfamily void mlpack\+::bindings\+::python\+::\+Import\+Decl (\begin{DoxyParamCaption}\item[{const \textbf{ util\+::\+Param\+Data} \&}]{d,  }\item[{const size\+\_\+t}]{indent,  }\item[{const typename boost\+::disable\+\_\+if$<$ arma\+::is\+\_\+arma\+\_\+type$<$ T $>$$>$\+::type $\ast$}]{ = {\ttfamily 0},  }\item[{const typename boost\+::enable\+\_\+if$<$ \textbf{ data\+::\+Has\+Serialize}$<$ T $>$$>$\+::type $\ast$}]{ = {\ttfamily 0} }\end{DoxyParamCaption})}



For a serializable type, print a cppclass definition. 

This will give output of the form\+:

cdef cppclass Type\+: Type() nogil

Definition at line 26 of file import\+\_\+decl.\+hpp.



References Param\+Data\+::cpp\+Type, and Strip\+Type().

\mbox{\label{namespacemlpack_1_1bindings_1_1python_aadeaaa2030d1c19e2401d670d299f7b8}} 
\index{mlpack\+::bindings\+::python@{mlpack\+::bindings\+::python}!Import\+Decl@{Import\+Decl}}
\index{Import\+Decl@{Import\+Decl}!mlpack\+::bindings\+::python@{mlpack\+::bindings\+::python}}
\subsubsection{Import\+Decl()\hspace{0.1cm}{\footnotesize\ttfamily [2/4]}}
{\footnotesize\ttfamily void mlpack\+::bindings\+::python\+::\+Import\+Decl (\begin{DoxyParamCaption}\item[{const \textbf{ util\+::\+Param\+Data} \&}]{,  }\item[{const size\+\_\+t}]{,  }\item[{const typename boost\+::disable\+\_\+if$<$ arma\+::is\+\_\+arma\+\_\+type$<$ T $>$$>$\+::type $\ast$}]{ = {\ttfamily 0},  }\item[{const typename boost\+::disable\+\_\+if$<$ \textbf{ data\+::\+Has\+Serialize}$<$ T $>$$>$\+::type $\ast$}]{ = {\ttfamily 0} }\end{DoxyParamCaption})}



For a non-\/serializable type, print nothing. 



Definition at line 53 of file import\+\_\+decl.\+hpp.

\mbox{\label{namespacemlpack_1_1bindings_1_1python_a2adb3e51e18d90f1c105657f7d30c74b}} 
\index{mlpack\+::bindings\+::python@{mlpack\+::bindings\+::python}!Import\+Decl@{Import\+Decl}}
\index{Import\+Decl@{Import\+Decl}!mlpack\+::bindings\+::python@{mlpack\+::bindings\+::python}}
\subsubsection{Import\+Decl()\hspace{0.1cm}{\footnotesize\ttfamily [3/4]}}
{\footnotesize\ttfamily void mlpack\+::bindings\+::python\+::\+Import\+Decl (\begin{DoxyParamCaption}\item[{const \textbf{ util\+::\+Param\+Data} \&}]{,  }\item[{const size\+\_\+t}]{,  }\item[{const typename boost\+::enable\+\_\+if$<$ arma\+::is\+\_\+arma\+\_\+type$<$ T $>$$>$\+::type $\ast$}]{ = {\ttfamily 0} }\end{DoxyParamCaption})}



For a matrix type, print nothing. 



Definition at line 66 of file import\+\_\+decl.\+hpp.

\mbox{\label{namespacemlpack_1_1bindings_1_1python_a550a540eed91a0799fbb5a941b50ade9}} 
\index{mlpack\+::bindings\+::python@{mlpack\+::bindings\+::python}!Import\+Decl@{Import\+Decl}}
\index{Import\+Decl@{Import\+Decl}!mlpack\+::bindings\+::python@{mlpack\+::bindings\+::python}}
\subsubsection{Import\+Decl()\hspace{0.1cm}{\footnotesize\ttfamily [4/4]}}
{\footnotesize\ttfamily void mlpack\+::bindings\+::python\+::\+Import\+Decl (\begin{DoxyParamCaption}\item[{const \textbf{ util\+::\+Param\+Data} \&}]{d,  }\item[{const void $\ast$}]{indent,  }\item[{void $\ast$}]{ }\end{DoxyParamCaption})}



Print the cppclass definition for a serializable model; print nothing for a non-\/serializable type. 


\begin{DoxyParams}{Parameters}
{\em d} & Parameter info struct. \\
\hline
{\em input} & Pointer to size\+\_\+t indicating indent. \\
\hline
{\em output} & Unused parameter. \\
\hline
\end{DoxyParams}


Definition at line 83 of file import\+\_\+decl.\+hpp.

\mbox{\label{namespacemlpack_1_1bindings_1_1python_a439896a9de3ddc4c67f15b55b7dff2e3}} 
\index{mlpack\+::bindings\+::python@{mlpack\+::bindings\+::python}!Param\+String@{Param\+String}}
\index{Param\+String@{Param\+String}!mlpack\+::bindings\+::python@{mlpack\+::bindings\+::python}}
\subsubsection{Param\+String()}
{\footnotesize\ttfamily std\+::string mlpack\+::bindings\+::python\+::\+Param\+String (\begin{DoxyParamCaption}\item[{const std\+::string \&}]{param\+Name }\end{DoxyParamCaption})\hspace{0.3cm}{\ttfamily [inline]}}



Given the parameter name, determine what it would actually be when passed to the command line. 

\mbox{\label{namespacemlpack_1_1bindings_1_1python_a6f27a30d5c8497d7bf8065e3a6cc7c50}} 
\index{mlpack\+::bindings\+::python@{mlpack\+::bindings\+::python}!Print\+Class\+Defn@{Print\+Class\+Defn}}
\index{Print\+Class\+Defn@{Print\+Class\+Defn}!mlpack\+::bindings\+::python@{mlpack\+::bindings\+::python}}
\subsubsection{Print\+Class\+Defn()\hspace{0.1cm}{\footnotesize\ttfamily [1/4]}}
{\footnotesize\ttfamily void mlpack\+::bindings\+::python\+::\+Print\+Class\+Defn (\begin{DoxyParamCaption}\item[{const \textbf{ util\+::\+Param\+Data} \&}]{,  }\item[{const typename boost\+::disable\+\_\+if$<$ arma\+::is\+\_\+arma\+\_\+type$<$ T $>$$>$\+::type $\ast$}]{ = {\ttfamily 0},  }\item[{const typename boost\+::disable\+\_\+if$<$ \textbf{ data\+::\+Has\+Serialize}$<$ T $>$$>$\+::type $\ast$}]{ = {\ttfamily 0} }\end{DoxyParamCaption})}



Non-\/serializable models don\textquotesingle{}t require any special definitions, so this prints nothing. 



Definition at line 26 of file print\+\_\+class\+\_\+defn.\+hpp.

\mbox{\label{namespacemlpack_1_1bindings_1_1python_aa15b44cf1e168135d5a0761d83c39f52}} 
\index{mlpack\+::bindings\+::python@{mlpack\+::bindings\+::python}!Print\+Class\+Defn@{Print\+Class\+Defn}}
\index{Print\+Class\+Defn@{Print\+Class\+Defn}!mlpack\+::bindings\+::python@{mlpack\+::bindings\+::python}}
\subsubsection{Print\+Class\+Defn()\hspace{0.1cm}{\footnotesize\ttfamily [2/4]}}
{\footnotesize\ttfamily void mlpack\+::bindings\+::python\+::\+Print\+Class\+Defn (\begin{DoxyParamCaption}\item[{const \textbf{ util\+::\+Param\+Data} \&}]{,  }\item[{const typename boost\+::enable\+\_\+if$<$ arma\+::is\+\_\+arma\+\_\+type$<$ T $>$$>$\+::type $\ast$}]{ = {\ttfamily 0} }\end{DoxyParamCaption})}



Matrices don\textquotesingle{}t require any special definitions, so this prints nothing. 



Definition at line 38 of file print\+\_\+class\+\_\+defn.\+hpp.

\mbox{\label{namespacemlpack_1_1bindings_1_1python_a6e640a6a519dc256ca4709181999585b}} 
\index{mlpack\+::bindings\+::python@{mlpack\+::bindings\+::python}!Print\+Class\+Defn@{Print\+Class\+Defn}}
\index{Print\+Class\+Defn@{Print\+Class\+Defn}!mlpack\+::bindings\+::python@{mlpack\+::bindings\+::python}}
\subsubsection{Print\+Class\+Defn()\hspace{0.1cm}{\footnotesize\ttfamily [3/4]}}
{\footnotesize\ttfamily void mlpack\+::bindings\+::python\+::\+Print\+Class\+Defn (\begin{DoxyParamCaption}\item[{const \textbf{ util\+::\+Param\+Data} \&}]{d,  }\item[{const typename boost\+::disable\+\_\+if$<$ arma\+::is\+\_\+arma\+\_\+type$<$ T $>$$>$\+::type $\ast$}]{ = {\ttfamily 0},  }\item[{const typename boost\+::enable\+\_\+if$<$ \textbf{ data\+::\+Has\+Serialize}$<$ T $>$$>$\+::type $\ast$}]{ = {\ttfamily 0} }\end{DoxyParamCaption})}



Serializable models require a special class definition. 

This will produce code like\+:

cdef class $<$\+Model\+Type$>$Type\+: cdef $<$\+Model\+Type$>$$\ast$ modelptr

def {\bfseries cinit}(self)\+: self.\+modelptr = new $<$\+Model\+Type$>$()

def {\bfseries dealloc}(self)\+: del self.\+modelptr

def {\bfseries getstate}(self)\+: return Serialize\+Out(self.\+modelptr, \char`\"{}$<$\+Model\+Type$>$\char`\"{})

def {\bfseries setstate}(self, state)\+: Serialize\+In(self.\+modelptr, state, \char`\"{}$<$\+Model\+Type$>$\char`\"{})

def {\bfseries reduce\+\_\+ex}(self)\+: return (self.\+\_\+\+\_\+class\+\_\+\+\_\+, (), self.\+\_\+\+\_\+getstate\+\_\+\+\_\+())

Definition at line 49 of file print\+\_\+class\+\_\+defn.\+hpp.



References Param\+Data\+::cpp\+Type, and Strip\+Type().

\mbox{\label{namespacemlpack_1_1bindings_1_1python_a340f4e7644e5a13953e15755dc8781c9}} 
\index{mlpack\+::bindings\+::python@{mlpack\+::bindings\+::python}!Print\+Class\+Defn@{Print\+Class\+Defn}}
\index{Print\+Class\+Defn@{Print\+Class\+Defn}!mlpack\+::bindings\+::python@{mlpack\+::bindings\+::python}}
\subsubsection{Print\+Class\+Defn()\hspace{0.1cm}{\footnotesize\ttfamily [4/4]}}
{\footnotesize\ttfamily void mlpack\+::bindings\+::python\+::\+Print\+Class\+Defn (\begin{DoxyParamCaption}\item[{const \textbf{ util\+::\+Param\+Data} \&}]{d,  }\item[{const void $\ast$}]{,  }\item[{void $\ast$}]{ }\end{DoxyParamCaption})}



Print the class definition to stdout. 

Only serializable models require a different class definition, so anything else does nothing.


\begin{DoxyParams}{Parameters}
{\em d} & Parameter data. \\
\hline
{\em input} & Unused parameter. \\
\hline
{\em output} & Unused parameter. \\
\hline
\end{DoxyParams}


Definition at line 112 of file print\+\_\+class\+\_\+defn.\+hpp.

\mbox{\label{namespacemlpack_1_1bindings_1_1python_abfff680c34a36b80498b39de5c002bae}} 
\index{mlpack\+::bindings\+::python@{mlpack\+::bindings\+::python}!Print\+Dataset@{Print\+Dataset}}
\index{Print\+Dataset@{Print\+Dataset}!mlpack\+::bindings\+::python@{mlpack\+::bindings\+::python}}
\subsubsection{Print\+Dataset()}
{\footnotesize\ttfamily std\+::string mlpack\+::bindings\+::python\+::\+Print\+Dataset (\begin{DoxyParamCaption}\item[{const std\+::string \&}]{dataset\+Name }\end{DoxyParamCaption})\hspace{0.3cm}{\ttfamily [inline]}}



Given the name of a matrix, print it. 

Here we do not need to modify anything. \mbox{\label{namespacemlpack_1_1bindings_1_1python_a3862770cfbd7c639832a167c21c0e636}} 
\index{mlpack\+::bindings\+::python@{mlpack\+::bindings\+::python}!Print\+Default@{Print\+Default}}
\index{Print\+Default@{Print\+Default}!mlpack\+::bindings\+::python@{mlpack\+::bindings\+::python}}
\subsubsection{Print\+Default()}
{\footnotesize\ttfamily std\+::string mlpack\+::bindings\+::python\+::\+Print\+Default (\begin{DoxyParamCaption}\item[{const std\+::string \&}]{param\+Name }\end{DoxyParamCaption})\hspace{0.3cm}{\ttfamily [inline]}}



Given a parameter name, print its corresponding default value. 

\mbox{\label{namespacemlpack_1_1bindings_1_1python_a5e0200212eb24e17c6ab5641f6ebbef6}} 
\index{mlpack\+::bindings\+::python@{mlpack\+::bindings\+::python}!Print\+Defn@{Print\+Defn}}
\index{Print\+Defn@{Print\+Defn}!mlpack\+::bindings\+::python@{mlpack\+::bindings\+::python}}
\subsubsection{Print\+Defn()}
{\footnotesize\ttfamily void mlpack\+::bindings\+::python\+::\+Print\+Defn (\begin{DoxyParamCaption}\item[{const \textbf{ util\+::\+Param\+Data} \&}]{d,  }\item[{const void $\ast$}]{,  }\item[{void $\ast$}]{ }\end{DoxyParamCaption})}



Print the definition for a Python binding parameter to stdout. 

This is the definition in the function declaration. 

Definition at line 26 of file print\+\_\+defn.\+hpp.



References if(), Param\+Data\+::name, and Param\+Data\+::required.

\mbox{\label{namespacemlpack_1_1bindings_1_1python_a6948ee0fd9f549d3924b3e464446d032}} 
\index{mlpack\+::bindings\+::python@{mlpack\+::bindings\+::python}!Print\+Doc@{Print\+Doc}}
\index{Print\+Doc@{Print\+Doc}!mlpack\+::bindings\+::python@{mlpack\+::bindings\+::python}}
\subsubsection{Print\+Doc()}
{\footnotesize\ttfamily void mlpack\+::bindings\+::python\+::\+Print\+Doc (\begin{DoxyParamCaption}\item[{const \textbf{ util\+::\+Param\+Data} \&}]{d,  }\item[{const void $\ast$}]{input,  }\item[{void $\ast$}]{ }\end{DoxyParamCaption})}



Print the docstring documentation for a given parameter. 

You are responsible for setting up the line---this does not handle indentation or anything. This is meant to produce a line of documentation describing a single parameter.

The indent parameter (void$\ast$ input, which should be a pointer to a size\+\_\+t) should be passed to know how much to indent for a new line.


\begin{DoxyParams}{Parameters}
{\em d} & Parameter data struct. \\
\hline
{\em input} & Pointer to size\+\_\+t containing indent. \\
\hline
{\em output} & Unused parameter. \\
\hline
\end{DoxyParams}


Definition at line 36 of file print\+\_\+doc.\+hpp.



References Param\+Data\+::cpp\+Type, Param\+Data\+::desc, mlpack\+::util\+::\+Hyphenate\+String(), if(), Param\+Data\+::name, and Param\+Data\+::required.

\mbox{\label{namespacemlpack_1_1bindings_1_1python_a02caa6bbd7dc53b45d0beb3178fa8bfa}} 
\index{mlpack\+::bindings\+::python@{mlpack\+::bindings\+::python}!Print\+Import@{Print\+Import}}
\index{Print\+Import@{Print\+Import}!mlpack\+::bindings\+::python@{mlpack\+::bindings\+::python}}
\subsubsection{Print\+Import()}
{\footnotesize\ttfamily std\+::string mlpack\+::bindings\+::python\+::\+Print\+Import (\begin{DoxyParamCaption}\item[{const std\+::string \&}]{binding\+Name }\end{DoxyParamCaption})\hspace{0.3cm}{\ttfamily [inline]}}



Print any import information for the Python binding. 

\mbox{\label{namespacemlpack_1_1bindings_1_1python_aee67e03f9f9ba1b8e7a30d1f160b464c}} 
\index{mlpack\+::bindings\+::python@{mlpack\+::bindings\+::python}!Print\+Input\+Options@{Print\+Input\+Options}}
\index{Print\+Input\+Options@{Print\+Input\+Options}!mlpack\+::bindings\+::python@{mlpack\+::bindings\+::python}}
\subsubsection{Print\+Input\+Options()\hspace{0.1cm}{\footnotesize\ttfamily [1/2]}}
{\footnotesize\ttfamily std\+::string mlpack\+::bindings\+::python\+::\+Print\+Input\+Options (\begin{DoxyParamCaption}{ }\end{DoxyParamCaption})\hspace{0.3cm}{\ttfamily [inline]}}

\mbox{\label{namespacemlpack_1_1bindings_1_1python_aa54735f722600e44319257fd8d2becff}} 
\index{mlpack\+::bindings\+::python@{mlpack\+::bindings\+::python}!Print\+Input\+Options@{Print\+Input\+Options}}
\index{Print\+Input\+Options@{Print\+Input\+Options}!mlpack\+::bindings\+::python@{mlpack\+::bindings\+::python}}
\subsubsection{Print\+Input\+Options()\hspace{0.1cm}{\footnotesize\ttfamily [2/2]}}
{\footnotesize\ttfamily std\+::string mlpack\+::bindings\+::python\+::\+Print\+Input\+Options (\begin{DoxyParamCaption}\item[{const std\+::string \&}]{param\+Name,  }\item[{const T \&}]{value,  }\item[{Args...}]{args }\end{DoxyParamCaption})}



Print an input option. 

This will throw an exception if the parameter does not exist in \doxyref{C\+LI}{p.}{classmlpack_1_1CLI}. For a parameter \textquotesingle{}x\textquotesingle{} with value \textquotesingle{}5\textquotesingle{}, this will print something like x=5. \mbox{\label{namespacemlpack_1_1bindings_1_1python_a5197789b331e7debaae81fe65eb8e767}} 
\index{mlpack\+::bindings\+::python@{mlpack\+::bindings\+::python}!Print\+Input\+Processing@{Print\+Input\+Processing}}
\index{Print\+Input\+Processing@{Print\+Input\+Processing}!mlpack\+::bindings\+::python@{mlpack\+::bindings\+::python}}
\subsubsection{Print\+Input\+Processing()\hspace{0.1cm}{\footnotesize\ttfamily [1/6]}}
{\footnotesize\ttfamily void mlpack\+::bindings\+::python\+::\+Print\+Input\+Processing (\begin{DoxyParamCaption}\item[{const \textbf{ util\+::\+Param\+Data} \&}]{d,  }\item[{const size\+\_\+t}]{indent,  }\item[{const typename boost\+::disable\+\_\+if$<$ \textbf{ util\+::\+Is\+Std\+Vector}$<$ T $>$$>$\+::type $\ast$}]{ = {\ttfamily 0},  }\item[{const typename boost\+::disable\+\_\+if$<$ arma\+::is\+\_\+arma\+\_\+type$<$ T $>$$>$\+::type $\ast$}]{ = {\ttfamily 0},  }\item[{const typename boost\+::disable\+\_\+if$<$ \textbf{ data\+::\+Has\+Serialize}$<$ T $>$$>$\+::type $\ast$}]{ = {\ttfamily 0},  }\item[{const typename boost\+::disable\+\_\+if$<$ std\+::is\+\_\+same$<$ T, std\+::tuple$<$ \textbf{ data\+::\+Dataset\+Info}, arma\+::mat $>$$>$$>$\+::type $\ast$}]{ = {\ttfamily 0} }\end{DoxyParamCaption})}



Print input processing for a standard option type. 

This gives us code like\+:

\subsection*{Detect if the parameter was passed; set if so.}

if param\+\_\+name is not None\+: if isinstance(param\+\_\+name, int)\+: Set\+Param[int]($<$const string$>$=\char`\"{}\char`\"{}$>$ \textquotesingle{}param\+\_\+name\textquotesingle{}, param\+\_\+name) \doxyref{C\+L\+I.\+Set\+Passed}{p.}{classmlpack_1_1CLI_a12aa08b1280e9b33864a9845706e0e59}($<$const string$>$=\char`\"{}\char`\"{}$>$ \textquotesingle{}param\+\_\+name\textquotesingle{}) else\+: raise Type\+Error(\char`\"{}\textquotesingle{}param\+\_\+name\textquotesingle{} must have type \textquotesingle{}list\textquotesingle{}!\char`\"{})

Definition at line 31 of file print\+\_\+input\+\_\+processing.\+hpp.



References if(), Param\+Data\+::name, and Param\+Data\+::required.

\mbox{\label{namespacemlpack_1_1bindings_1_1python_ae4fa12b55fe6ba48fc37774e58255c32}} 
\index{mlpack\+::bindings\+::python@{mlpack\+::bindings\+::python}!Print\+Input\+Processing@{Print\+Input\+Processing}}
\index{Print\+Input\+Processing@{Print\+Input\+Processing}!mlpack\+::bindings\+::python@{mlpack\+::bindings\+::python}}
\subsubsection{Print\+Input\+Processing()\hspace{0.1cm}{\footnotesize\ttfamily [2/6]}}
{\footnotesize\ttfamily void mlpack\+::bindings\+::python\+::\+Print\+Input\+Processing (\begin{DoxyParamCaption}\item[{const \textbf{ util\+::\+Param\+Data} \&}]{d,  }\item[{const size\+\_\+t}]{indent,  }\item[{const typename boost\+::disable\+\_\+if$<$ arma\+::is\+\_\+arma\+\_\+type$<$ T $>$$>$\+::type $\ast$}]{ = {\ttfamily 0},  }\item[{const typename boost\+::disable\+\_\+if$<$ \textbf{ data\+::\+Has\+Serialize}$<$ T $>$$>$\+::type $\ast$}]{ = {\ttfamily 0},  }\item[{const typename boost\+::disable\+\_\+if$<$ std\+::is\+\_\+same$<$ T, std\+::tuple$<$ \textbf{ data\+::\+Dataset\+Info}, arma\+::mat $>$$>$$>$\+::type $\ast$}]{ = {\ttfamily 0},  }\item[{const typename boost\+::enable\+\_\+if$<$ \textbf{ util\+::\+Is\+Std\+Vector}$<$ T $>$$>$\+::type $\ast$}]{ = {\ttfamily 0} }\end{DoxyParamCaption})}



Print input processing for a vector type. 

This gives us code like\+: if param\+\_\+name is not None\+: if isinstance(param\+\_\+name, list)\+: if len(param\+\_\+name) $>$ 0\+: if isinstance(param\+\_\+name[0], str)\+: Set\+Param[vector[string]]($<$const string$>$=\char`\"{}\char`\"{}$>$ \textquotesingle{}param\+\_\+name\textquotesingle{}, param\+\_\+name) \doxyref{C\+L\+I.\+Set\+Passed}{p.}{classmlpack_1_1CLI_a12aa08b1280e9b33864a9845706e0e59}($<$const string$>$=\char`\"{}\char`\"{}$>$ \textquotesingle{}param\+\_\+name\textquotesingle{}) else\+: raise Type\+Error(\char`\"{}\textquotesingle{}param\+\_\+name\textquotesingle{} must have type \textquotesingle{}list of strs\textquotesingle{}!\char`\"{}) else\+: raise Type\+Error(\char`\"{}\textquotesingle{}param\+\_\+name\textquotesingle{} must have type \textquotesingle{}list\textquotesingle{}!\char`\"{})

Definition at line 164 of file print\+\_\+input\+\_\+processing.\+hpp.



References if(), Param\+Data\+::name, and Param\+Data\+::required.

\mbox{\label{namespacemlpack_1_1bindings_1_1python_a71641423b58fd86c8aec72d08d45f364}} 
\index{mlpack\+::bindings\+::python@{mlpack\+::bindings\+::python}!Print\+Input\+Processing@{Print\+Input\+Processing}}
\index{Print\+Input\+Processing@{Print\+Input\+Processing}!mlpack\+::bindings\+::python@{mlpack\+::bindings\+::python}}
\subsubsection{Print\+Input\+Processing()\hspace{0.1cm}{\footnotesize\ttfamily [3/6]}}
{\footnotesize\ttfamily void mlpack\+::bindings\+::python\+::\+Print\+Input\+Processing (\begin{DoxyParamCaption}\item[{const \textbf{ util\+::\+Param\+Data} \&}]{d,  }\item[{const size\+\_\+t}]{indent,  }\item[{const typename boost\+::disable\+\_\+if$<$ \textbf{ util\+::\+Is\+Std\+Vector}$<$ T $>$$>$\+::type $\ast$}]{ = {\ttfamily 0},  }\item[{const typename boost\+::enable\+\_\+if$<$ arma\+::is\+\_\+arma\+\_\+type$<$ T $>$$>$\+::type $\ast$}]{ = {\ttfamily 0} }\end{DoxyParamCaption})}



Print input processing for a matrix type. 

This gives us code like\+:

\subsection*{Detect if the parameter was passed; set if so.}

if param\+\_\+name is not None\+: param\+\_\+name\+\_\+tuple = to\+\_\+matrix(param\+\_\+name) if param\+\_\+name\+\_\+tuple[0].shape[0] == 1 or param\+\_\+name\+\_\+tuple[0].shape[1] == 1\+: param\+\_\+name\+\_\+tuple[0].shape = (param\+\_\+name\+\_\+tuple[0].size,) param\+\_\+name\+\_\+mat = arma\+\_\+numpy.\+numpy\+\_\+to\+\_\+mat\+\_\+s(param\+\_\+name\+\_\+tuple[0], param\+\_\+name\+\_\+tuple[1]) Set\+Param[mat]($<$const string$>$=\char`\"{}\char`\"{}$>$ \textquotesingle{}param\+\_\+name\textquotesingle{}, dereference(param\+\_\+name\+\_\+mat)) \doxyref{C\+L\+I.\+Set\+Passed}{p.}{classmlpack_1_1CLI_a12aa08b1280e9b33864a9845706e0e59}($<$const string$>$=\char`\"{}\char`\"{}$>$ \textquotesingle{}param\+\_\+name\textquotesingle{})

Definition at line 251 of file print\+\_\+input\+\_\+processing.\+hpp.



References Param\+Data\+::name, and Param\+Data\+::required.

\mbox{\label{namespacemlpack_1_1bindings_1_1python_a1d7f2c83f886b81b4ab8ac867e822752}} 
\index{mlpack\+::bindings\+::python@{mlpack\+::bindings\+::python}!Print\+Input\+Processing@{Print\+Input\+Processing}}
\index{Print\+Input\+Processing@{Print\+Input\+Processing}!mlpack\+::bindings\+::python@{mlpack\+::bindings\+::python}}
\subsubsection{Print\+Input\+Processing()\hspace{0.1cm}{\footnotesize\ttfamily [4/6]}}
{\footnotesize\ttfamily void mlpack\+::bindings\+::python\+::\+Print\+Input\+Processing (\begin{DoxyParamCaption}\item[{const \textbf{ util\+::\+Param\+Data} \&}]{d,  }\item[{const size\+\_\+t}]{indent,  }\item[{const typename boost\+::disable\+\_\+if$<$ \textbf{ util\+::\+Is\+Std\+Vector}$<$ T $>$$>$\+::type $\ast$}]{ = {\ttfamily 0},  }\item[{const typename boost\+::disable\+\_\+if$<$ arma\+::is\+\_\+arma\+\_\+type$<$ T $>$$>$\+::type $\ast$}]{ = {\ttfamily 0},  }\item[{const typename boost\+::enable\+\_\+if$<$ \textbf{ data\+::\+Has\+Serialize}$<$ T $>$$>$\+::type $\ast$}]{ = {\ttfamily 0} }\end{DoxyParamCaption})}



Print input processing for a serializable type. 

This gives us code like\+:

\subsection*{Detect if the parameter was passed; set if so.}

if param\+\_\+name is not None\+: try\+: Set\+Param\+Ptr[Model](\textquotesingle{}param\+\_\+name\textquotesingle{}, ($<$Model\+Type?$>$ param\+\_\+name).modelptr, \doxyref{C\+L\+I.\+Has\+Param}{p.}{classmlpack_1_1CLI_a39eda1093ba2453f2b66d37153ac542c}(\textquotesingle{}copy\+\_\+all\+\_\+inputs\textquotesingle{})) except Type\+Error as e\+: if type(param\+\_\+name).\+\_\+\+\_\+name\+\_\+\+\_\+ == \char`\"{}\+Model\+Type\char`\"{}\+: Set\+Param\+Ptr[Model](\textquotesingle{}param\+\_\+name\textquotesingle{}, ($<$\+Model\+Type$>$ param\+\_\+name).modelptr, \doxyref{C\+L\+I.\+Has\+Param}{p.}{classmlpack_1_1CLI_a39eda1093ba2453f2b66d37153ac542c}(\textquotesingle{}copy\+\_\+all\+\_\+inputs\textquotesingle{})) else\+: raise e \doxyref{C\+L\+I.\+Set\+Passed}{p.}{classmlpack_1_1CLI_a12aa08b1280e9b33864a9845706e0e59}($<$const string$>$=\char`\"{}\char`\"{}$>$ \textquotesingle{}param\+\_\+name\textquotesingle{})

Definition at line 372 of file print\+\_\+input\+\_\+processing.\+hpp.



References Param\+Data\+::cpp\+Type, Param\+Data\+::name, Param\+Data\+::required, and Strip\+Type().

\mbox{\label{namespacemlpack_1_1bindings_1_1python_a463352d6e36f1e4fc1f2b67f6e5da503}} 
\index{mlpack\+::bindings\+::python@{mlpack\+::bindings\+::python}!Print\+Input\+Processing@{Print\+Input\+Processing}}
\index{Print\+Input\+Processing@{Print\+Input\+Processing}!mlpack\+::bindings\+::python@{mlpack\+::bindings\+::python}}
\subsubsection{Print\+Input\+Processing()\hspace{0.1cm}{\footnotesize\ttfamily [5/6]}}
{\footnotesize\ttfamily void mlpack\+::bindings\+::python\+::\+Print\+Input\+Processing (\begin{DoxyParamCaption}\item[{const \textbf{ util\+::\+Param\+Data} \&}]{d,  }\item[{const size\+\_\+t}]{indent,  }\item[{const typename boost\+::disable\+\_\+if$<$ \textbf{ util\+::\+Is\+Std\+Vector}$<$ T $>$$>$\+::type $\ast$}]{ = {\ttfamily 0},  }\item[{const typename boost\+::enable\+\_\+if$<$ std\+::is\+\_\+same$<$ T, std\+::tuple$<$ \textbf{ data\+::\+Dataset\+Info}, arma\+::mat $>$$>$$>$\+::type $\ast$}]{ = {\ttfamily 0} }\end{DoxyParamCaption})}



Print input processing for a matrix/\+Dataset\+Info type. 

We want to generate code like the following\+:

if param\+\_\+name is not None\+: param\+\_\+name\+\_\+tuple = to\+\_\+matrix\+\_\+with\+\_\+info(param\+\_\+name) if len(param\+\_\+name\+\_\+tuple[0].shape) $<$ 2\+: param\+\_\+name\+\_\+tuple[0].shape = (param\+\_\+name\+\_\+tuple[0].size,) param\+\_\+name\+\_\+mat = arma\+\_\+numpy.\+numpy\+\_\+to\+\_\+matrix\+\_\+d(param\+\_\+name\+\_\+tuple[0]) Set\+Param\+With\+Info[mat]($<$const string$>$=\char`\"{}\char`\"{}$>$ \textquotesingle{}param\+\_\+name\textquotesingle{}, dereference(param\+\_\+name\+\_\+mat), \&param\+\_\+name\+\_\+tuple[1][0]) \doxyref{C\+L\+I.\+Set\+Passed}{p.}{classmlpack_1_1CLI_a12aa08b1280e9b33864a9845706e0e59}($<$const string$>$=\char`\"{}\char`\"{}$>$ \textquotesingle{}param\+\_\+name\textquotesingle{})

Definition at line 445 of file print\+\_\+input\+\_\+processing.\+hpp.



References Param\+Data\+::name, and Param\+Data\+::required.

\mbox{\label{namespacemlpack_1_1bindings_1_1python_abebec6ee94c21bcd97107256292e51ce}} 
\index{mlpack\+::bindings\+::python@{mlpack\+::bindings\+::python}!Print\+Input\+Processing@{Print\+Input\+Processing}}
\index{Print\+Input\+Processing@{Print\+Input\+Processing}!mlpack\+::bindings\+::python@{mlpack\+::bindings\+::python}}
\subsubsection{Print\+Input\+Processing()\hspace{0.1cm}{\footnotesize\ttfamily [6/6]}}
{\footnotesize\ttfamily void mlpack\+::bindings\+::python\+::\+Print\+Input\+Processing (\begin{DoxyParamCaption}\item[{const \textbf{ util\+::\+Param\+Data} \&}]{d,  }\item[{const void $\ast$}]{input,  }\item[{void $\ast$}]{ }\end{DoxyParamCaption})}



Given parameter information and the current number of spaces for indentation, print the code to process the input to cout. 

This code assumes that data.\+input is true, and should not be called when data.\+input is false.

The number of spaces to indent should be passed through the input pointer.


\begin{DoxyParams}{Parameters}
{\em d} & Parameter data struct. \\
\hline
{\em input} & Pointer to size\+\_\+t holding the indentation. \\
\hline
{\em output} & Unused parameter. \\
\hline
\end{DoxyParams}


Definition at line 525 of file print\+\_\+input\+\_\+processing.\+hpp.

\mbox{\label{namespacemlpack_1_1bindings_1_1python_a2c09399575bb61ca91eb665e67f1a2f6}} 
\index{mlpack\+::bindings\+::python@{mlpack\+::bindings\+::python}!Print\+Model@{Print\+Model}}
\index{Print\+Model@{Print\+Model}!mlpack\+::bindings\+::python@{mlpack\+::bindings\+::python}}
\subsubsection{Print\+Model()}
{\footnotesize\ttfamily std\+::string mlpack\+::bindings\+::python\+::\+Print\+Model (\begin{DoxyParamCaption}\item[{const std\+::string \&}]{model\+Name }\end{DoxyParamCaption})\hspace{0.3cm}{\ttfamily [inline]}}



Given the name of a model, print it. 

Here we do not need to modify anything. \mbox{\label{namespacemlpack_1_1bindings_1_1python_af1b1c91db5f4872ad6a8420740665e47}} 
\index{mlpack\+::bindings\+::python@{mlpack\+::bindings\+::python}!Print\+Output\+Option\+Info@{Print\+Output\+Option\+Info}}
\index{Print\+Output\+Option\+Info@{Print\+Output\+Option\+Info}!mlpack\+::bindings\+::python@{mlpack\+::bindings\+::python}}
\subsubsection{Print\+Output\+Option\+Info()}
{\footnotesize\ttfamily std\+::string mlpack\+::bindings\+::python\+::\+Print\+Output\+Option\+Info (\begin{DoxyParamCaption}{ }\end{DoxyParamCaption})\hspace{0.3cm}{\ttfamily [inline]}}



Print any special information about output options. 

\mbox{\label{namespacemlpack_1_1bindings_1_1python_a4d147955dd7f5d654e112998d3ca51ca}} 
\index{mlpack\+::bindings\+::python@{mlpack\+::bindings\+::python}!Print\+Output\+Options@{Print\+Output\+Options}}
\index{Print\+Output\+Options@{Print\+Output\+Options}!mlpack\+::bindings\+::python@{mlpack\+::bindings\+::python}}
\subsubsection{Print\+Output\+Options()\hspace{0.1cm}{\footnotesize\ttfamily [1/2]}}
{\footnotesize\ttfamily std\+::string mlpack\+::bindings\+::python\+::\+Print\+Output\+Options (\begin{DoxyParamCaption}{ }\end{DoxyParamCaption})\hspace{0.3cm}{\ttfamily [inline]}}

\mbox{\label{namespacemlpack_1_1bindings_1_1python_a6ed858166ad7d26009f2e85f1fa101c4}} 
\index{mlpack\+::bindings\+::python@{mlpack\+::bindings\+::python}!Print\+Output\+Options@{Print\+Output\+Options}}
\index{Print\+Output\+Options@{Print\+Output\+Options}!mlpack\+::bindings\+::python@{mlpack\+::bindings\+::python}}
\subsubsection{Print\+Output\+Options()\hspace{0.1cm}{\footnotesize\ttfamily [2/2]}}
{\footnotesize\ttfamily std\+::string mlpack\+::bindings\+::python\+::\+Print\+Output\+Options (\begin{DoxyParamCaption}\item[{const std\+::string \&}]{param\+Name,  }\item[{const T \&}]{value,  }\item[{Args...}]{args }\end{DoxyParamCaption})}

\mbox{\label{namespacemlpack_1_1bindings_1_1python_a90436f30009fcd2e2b1bf2b0b4f3b775}} 
\index{mlpack\+::bindings\+::python@{mlpack\+::bindings\+::python}!Print\+Output\+Processing@{Print\+Output\+Processing}}
\index{Print\+Output\+Processing@{Print\+Output\+Processing}!mlpack\+::bindings\+::python@{mlpack\+::bindings\+::python}}
\subsubsection{Print\+Output\+Processing()\hspace{0.1cm}{\footnotesize\ttfamily [1/5]}}
{\footnotesize\ttfamily void mlpack\+::bindings\+::python\+::\+Print\+Output\+Processing (\begin{DoxyParamCaption}\item[{const \textbf{ util\+::\+Param\+Data} \&}]{d,  }\item[{const size\+\_\+t}]{indent,  }\item[{const bool}]{only\+Output,  }\item[{const typename boost\+::disable\+\_\+if$<$ arma\+::is\+\_\+arma\+\_\+type$<$ T $>$$>$\+::type $\ast$}]{ = {\ttfamily 0},  }\item[{const typename boost\+::disable\+\_\+if$<$ \textbf{ data\+::\+Has\+Serialize}$<$ T $>$$>$\+::type $\ast$}]{ = {\ttfamily 0},  }\item[{const typename boost\+::disable\+\_\+if$<$ std\+::is\+\_\+same$<$ T, std\+::tuple$<$ \textbf{ data\+::\+Dataset\+Info}, arma\+::mat $>$$>$$>$\+::type $\ast$}]{ = {\ttfamily 0} }\end{DoxyParamCaption})}



Print output processing for a regular parameter type. 

This gives us code like\+:

result = \doxyref{C\+L\+I.\+Get\+Param}{p.}{classmlpack_1_1CLI_a6c641e7bd5291c24b787f379f25cb9b8}[int](\textquotesingle{}param\+\_\+name\textquotesingle{})

This gives us code like\+:

result[\textquotesingle{}param\+\_\+name\textquotesingle{}] = \doxyref{C\+L\+I.\+Get\+Param}{p.}{classmlpack_1_1CLI_a6c641e7bd5291c24b787f379f25cb9b8}[int](\textquotesingle{}param\+\_\+name\textquotesingle{})

Definition at line 29 of file print\+\_\+output\+\_\+processing.\+hpp.



References if(), and Param\+Data\+::name.

\mbox{\label{namespacemlpack_1_1bindings_1_1python_a34c15d3ab7c87fb42eea9b1ac51efb4c}} 
\index{mlpack\+::bindings\+::python@{mlpack\+::bindings\+::python}!Print\+Output\+Processing@{Print\+Output\+Processing}}
\index{Print\+Output\+Processing@{Print\+Output\+Processing}!mlpack\+::bindings\+::python@{mlpack\+::bindings\+::python}}
\subsubsection{Print\+Output\+Processing()\hspace{0.1cm}{\footnotesize\ttfamily [2/5]}}
{\footnotesize\ttfamily void mlpack\+::bindings\+::python\+::\+Print\+Output\+Processing (\begin{DoxyParamCaption}\item[{const \textbf{ util\+::\+Param\+Data} \&}]{d,  }\item[{const size\+\_\+t}]{indent,  }\item[{const bool}]{only\+Output,  }\item[{const typename boost\+::enable\+\_\+if$<$ arma\+::is\+\_\+arma\+\_\+type$<$ T $>$$>$\+::type $\ast$}]{ = {\ttfamily 0} }\end{DoxyParamCaption})}



Print output processing for a matrix type. 

This gives us code like\+:

result = arma\+\_\+numpy.\+mat\+\_\+to\+\_\+numpy\+\_\+X(\doxyref{C\+L\+I.\+Get\+Param}{p.}{classmlpack_1_1CLI_a6c641e7bd5291c24b787f379f25cb9b8}[mat](\char`\"{}name\char`\"{}))

where X indicates the type to convert to.

This gives us code like\+:

result[\textquotesingle{}param\+\_\+name\textquotesingle{}] = arma\+\_\+numpy.\+mat\+\_\+to\+\_\+numpy\+\_\+X(\doxyref{C\+L\+I.\+Get\+Param}{p.}{classmlpack_1_1CLI_a6c641e7bd5291c24b787f379f25cb9b8}[mat](\textquotesingle{}name\textquotesingle{})

where X indicates the type to convert to.

Definition at line 85 of file print\+\_\+output\+\_\+processing.\+hpp.



References Param\+Data\+::name.

\mbox{\label{namespacemlpack_1_1bindings_1_1python_adbe8b35aa26bffe54f754b8b5ba45d33}} 
\index{mlpack\+::bindings\+::python@{mlpack\+::bindings\+::python}!Print\+Output\+Processing@{Print\+Output\+Processing}}
\index{Print\+Output\+Processing@{Print\+Output\+Processing}!mlpack\+::bindings\+::python@{mlpack\+::bindings\+::python}}
\subsubsection{Print\+Output\+Processing()\hspace{0.1cm}{\footnotesize\ttfamily [3/5]}}
{\footnotesize\ttfamily void mlpack\+::bindings\+::python\+::\+Print\+Output\+Processing (\begin{DoxyParamCaption}\item[{const \textbf{ util\+::\+Param\+Data} \&}]{d,  }\item[{const size\+\_\+t}]{indent,  }\item[{const bool}]{only\+Output,  }\item[{const typename boost\+::enable\+\_\+if$<$ std\+::is\+\_\+same$<$ T, std\+::tuple$<$ \textbf{ data\+::\+Dataset\+Info}, arma\+::mat $>$$>$$>$\+::type $\ast$}]{ = {\ttfamily 0} }\end{DoxyParamCaption})}



Print output processing for a dataset info / matrix combination. 

This gives us code like\+:

result = arma\+\_\+numpy.\+mat\+\_\+to\+\_\+numpy\+\_\+X(Get\+Param\+With\+Info[mat](\textquotesingle{}name\textquotesingle{}))

This gives us code like\+:

result[\textquotesingle{}param\+\_\+name\textquotesingle{}] = arma\+\_\+numpy.\+mat\+\_\+to\+\_\+numpy\+\_\+X(Get\+Param\+With\+Info[mat](\textquotesingle{}name\textquotesingle{}))

Definition at line 127 of file print\+\_\+output\+\_\+processing.\+hpp.



References Param\+Data\+::name.

\mbox{\label{namespacemlpack_1_1bindings_1_1python_a6b678d277600e27219c816acef4e1839}} 
\index{mlpack\+::bindings\+::python@{mlpack\+::bindings\+::python}!Print\+Output\+Processing@{Print\+Output\+Processing}}
\index{Print\+Output\+Processing@{Print\+Output\+Processing}!mlpack\+::bindings\+::python@{mlpack\+::bindings\+::python}}
\subsubsection{Print\+Output\+Processing()\hspace{0.1cm}{\footnotesize\ttfamily [4/5]}}
{\footnotesize\ttfamily void mlpack\+::bindings\+::python\+::\+Print\+Output\+Processing (\begin{DoxyParamCaption}\item[{const \textbf{ util\+::\+Param\+Data} \&}]{d,  }\item[{const size\+\_\+t}]{indent,  }\item[{const bool}]{only\+Output,  }\item[{const typename boost\+::disable\+\_\+if$<$ arma\+::is\+\_\+arma\+\_\+type$<$ T $>$$>$\+::type $\ast$}]{ = {\ttfamily 0},  }\item[{const typename boost\+::enable\+\_\+if$<$ \textbf{ data\+::\+Has\+Serialize}$<$ T $>$$>$\+::type $\ast$}]{ = {\ttfamily 0} }\end{DoxyParamCaption})}



Print output processing for a serializable model. 

This gives us code like\+:

result = Model\+Type() ($<$Model\+Type?$>$ result).modelptr = Get\+Param\+Ptr[Model](\textquotesingle{}name\textquotesingle{})

But we also have to check to ensure there aren\textquotesingle{}t any input model parameters of the same type that could have the same model pointer. So we need to loop through all input parameters that have the same type, and double-\/check.

This gives us code like\+:

result[\textquotesingle{}name\textquotesingle{}] = Model\+Type() ($<$Model\+Type?$>$ result[\textquotesingle{}name\textquotesingle{}]).modelptr = Get\+Param\+Ptr[Model](\textquotesingle{}name\textquotesingle{}))

But we also have to check to ensure there aren\textquotesingle{}t any input model parameters of the same type that could have the same model pointer. So we need to loop through all input parameters that have the same type, and double-\/check.

Definition at line 169 of file print\+\_\+output\+\_\+processing.\+hpp.



References Param\+Data\+::cpp\+Type, Param\+Data\+::input, Param\+Data\+::name, C\+L\+I\+::\+Parameters(), Param\+Data\+::required, and Strip\+Type().

\mbox{\label{namespacemlpack_1_1bindings_1_1python_a2b67d678906abe2cbdbcde6abea7d483}} 
\index{mlpack\+::bindings\+::python@{mlpack\+::bindings\+::python}!Print\+Output\+Processing@{Print\+Output\+Processing}}
\index{Print\+Output\+Processing@{Print\+Output\+Processing}!mlpack\+::bindings\+::python@{mlpack\+::bindings\+::python}}
\subsubsection{Print\+Output\+Processing()\hspace{0.1cm}{\footnotesize\ttfamily [5/5]}}
{\footnotesize\ttfamily void mlpack\+::bindings\+::python\+::\+Print\+Output\+Processing (\begin{DoxyParamCaption}\item[{const \textbf{ util\+::\+Param\+Data} \&}]{d,  }\item[{const void $\ast$}]{input,  }\item[{void $\ast$}]{ }\end{DoxyParamCaption})}



Given parameter information and the current number of spaces for indentation, print the code to process the output to cout. 

This code assumes that data.\+input is false, and should not be called when data.\+input is true. If this is the only output, the results will be different.

The input pointer should be a pointer to a std\+::tuple$<$size\+\_\+t, bool$>$ where the first element is the indentation and the second element is a boolean representing whether or not this is the only output parameter.


\begin{DoxyParams}{Parameters}
{\em d} & Parameter data struct. \\
\hline
{\em input} & Pointer to size\+\_\+t holding the indentation. \\
\hline
{\em output} & Unused parameter. \\
\hline
\end{DoxyParams}


Definition at line 298 of file print\+\_\+output\+\_\+processing.\+hpp.

\mbox{\label{namespacemlpack_1_1bindings_1_1python_a53e626caf8b9afb10aa15b780c824575}} 
\index{mlpack\+::bindings\+::python@{mlpack\+::bindings\+::python}!Print\+P\+YX@{Print\+P\+YX}}
\index{Print\+P\+YX@{Print\+P\+YX}!mlpack\+::bindings\+::python@{mlpack\+::bindings\+::python}}
\subsubsection{Print\+P\+Y\+X()}
{\footnotesize\ttfamily void mlpack\+::bindings\+::python\+::\+Print\+P\+YX (\begin{DoxyParamCaption}\item[{const \textbf{ util\+::\+Program\+Doc} \&}]{program\+Info,  }\item[{const std\+::string \&}]{main\+Filename,  }\item[{const std\+::string \&}]{function\+Name }\end{DoxyParamCaption})}



Given a list of parameter definition and program documentation, print a generated .pyx file to stdout. 


\begin{DoxyParams}{Parameters}
{\em parameters} & List of parameters the program will use (from \doxyref{C\+LI}{p.}{classmlpack_1_1CLI}). \\
\hline
{\em program\+Info} & Documentation for the program. \\
\hline
{\em main\+Filename} & Filename of the main program (i.\+e. \char`\"{}/path/to/pca\+\_\+main.\+cpp\char`\"{}). \\
\hline
{\em function\+Name} & Name of the function (i.\+e. \char`\"{}pca\char`\"{}). \\
\hline
\end{DoxyParams}
\mbox{\label{namespacemlpack_1_1bindings_1_1python_a61d415d56611f9afe7daab948ea545dd}} 
\index{mlpack\+::bindings\+::python@{mlpack\+::bindings\+::python}!Print\+Type\+Doc@{Print\+Type\+Doc}}
\index{Print\+Type\+Doc@{Print\+Type\+Doc}!mlpack\+::bindings\+::python@{mlpack\+::bindings\+::python}}
\subsubsection{Print\+Type\+Doc()\hspace{0.1cm}{\footnotesize\ttfamily [1/6]}}
{\footnotesize\ttfamily std\+::string mlpack\+::bindings\+::python\+::\+Print\+Type\+Doc (\begin{DoxyParamCaption}\item[{const \textbf{ util\+::\+Param\+Data} \&}]{data,  }\item[{const typename boost\+::disable\+\_\+if$<$ arma\+::is\+\_\+arma\+\_\+type$<$ T $>$$>$\+::type $\ast$}]{ = {\ttfamily 0},  }\item[{const typename boost\+::disable\+\_\+if$<$ \textbf{ util\+::\+Is\+Std\+Vector}$<$ T $>$$>$\+::type $\ast$}]{ = {\ttfamily 0},  }\item[{const typename boost\+::disable\+\_\+if$<$ \textbf{ data\+::\+Has\+Serialize}$<$ T $>$$>$\+::type $\ast$}]{ = {\ttfamily 0},  }\item[{const typename boost\+::disable\+\_\+if$<$ std\+::is\+\_\+same$<$ T, std\+::tuple$<$ \textbf{ data\+::\+Dataset\+Info}, arma\+::mat $>$$>$$>$\+::type $\ast$}]{ = {\ttfamily 0} }\end{DoxyParamCaption})}



Return a string representing the command-\/line type of an option. 

\mbox{\label{namespacemlpack_1_1bindings_1_1python_a2df39f326391dce2a99432f5c06f17e2}} 
\index{mlpack\+::bindings\+::python@{mlpack\+::bindings\+::python}!Print\+Type\+Doc@{Print\+Type\+Doc}}
\index{Print\+Type\+Doc@{Print\+Type\+Doc}!mlpack\+::bindings\+::python@{mlpack\+::bindings\+::python}}
\subsubsection{Print\+Type\+Doc()\hspace{0.1cm}{\footnotesize\ttfamily [2/6]}}
{\footnotesize\ttfamily std\+::string mlpack\+::bindings\+::python\+::\+Print\+Type\+Doc (\begin{DoxyParamCaption}\item[{const \textbf{ util\+::\+Param\+Data} \&}]{data,  }\item[{const typename std\+::enable\+\_\+if$<$ \textbf{ util\+::\+Is\+Std\+Vector}$<$ T $>$\+::value $>$\+::type $\ast$}]{ = {\ttfamily 0} }\end{DoxyParamCaption})}



Return a string representing the command-\/line type of a vector. 

\mbox{\label{namespacemlpack_1_1bindings_1_1python_ab2df9264402a235adb74c6e07efd68ca}} 
\index{mlpack\+::bindings\+::python@{mlpack\+::bindings\+::python}!Print\+Type\+Doc@{Print\+Type\+Doc}}
\index{Print\+Type\+Doc@{Print\+Type\+Doc}!mlpack\+::bindings\+::python@{mlpack\+::bindings\+::python}}
\subsubsection{Print\+Type\+Doc()\hspace{0.1cm}{\footnotesize\ttfamily [3/6]}}
{\footnotesize\ttfamily std\+::string mlpack\+::bindings\+::python\+::\+Print\+Type\+Doc (\begin{DoxyParamCaption}\item[{const \textbf{ util\+::\+Param\+Data} \&}]{data,  }\item[{const typename std\+::enable\+\_\+if$<$ arma\+::is\+\_\+arma\+\_\+type$<$ T $>$\+::value $>$\+::type $\ast$}]{ = {\ttfamily 0} }\end{DoxyParamCaption})}



Return a string representing the command-\/line type of a matrix option. 

\mbox{\label{namespacemlpack_1_1bindings_1_1python_aa75e5aa4b330084d9f31dc40850e259d}} 
\index{mlpack\+::bindings\+::python@{mlpack\+::bindings\+::python}!Print\+Type\+Doc@{Print\+Type\+Doc}}
\index{Print\+Type\+Doc@{Print\+Type\+Doc}!mlpack\+::bindings\+::python@{mlpack\+::bindings\+::python}}
\subsubsection{Print\+Type\+Doc()\hspace{0.1cm}{\footnotesize\ttfamily [4/6]}}
{\footnotesize\ttfamily std\+::string mlpack\+::bindings\+::python\+::\+Print\+Type\+Doc (\begin{DoxyParamCaption}\item[{const \textbf{ util\+::\+Param\+Data} \&}]{data,  }\item[{const typename std\+::enable\+\_\+if$<$ std\+::is\+\_\+same$<$ T, std\+::tuple$<$ \textbf{ data\+::\+Dataset\+Info}, arma\+::mat $>$$>$\+::value $>$\+::type $\ast$}]{ = {\ttfamily 0} }\end{DoxyParamCaption})}



Return a string representing the command-\/line type of a matrix tuple option. 

\mbox{\label{namespacemlpack_1_1bindings_1_1python_a5d8611e0edc8c581ee77b62a81ecd3b7}} 
\index{mlpack\+::bindings\+::python@{mlpack\+::bindings\+::python}!Print\+Type\+Doc@{Print\+Type\+Doc}}
\index{Print\+Type\+Doc@{Print\+Type\+Doc}!mlpack\+::bindings\+::python@{mlpack\+::bindings\+::python}}
\subsubsection{Print\+Type\+Doc()\hspace{0.1cm}{\footnotesize\ttfamily [5/6]}}
{\footnotesize\ttfamily std\+::string mlpack\+::bindings\+::python\+::\+Print\+Type\+Doc (\begin{DoxyParamCaption}\item[{const \textbf{ util\+::\+Param\+Data} \&}]{data,  }\item[{const typename boost\+::disable\+\_\+if$<$ arma\+::is\+\_\+arma\+\_\+type$<$ T $>$$>$\+::type $\ast$}]{ = {\ttfamily 0},  }\item[{const typename boost\+::enable\+\_\+if$<$ \textbf{ data\+::\+Has\+Serialize}$<$ T $>$$>$\+::type $\ast$}]{ = {\ttfamily 0} }\end{DoxyParamCaption})}



Return a string representing the command-\/line type of a model. 

\mbox{\label{namespacemlpack_1_1bindings_1_1python_ad221a1610fe16b409a5299b09aea80aa}} 
\index{mlpack\+::bindings\+::python@{mlpack\+::bindings\+::python}!Print\+Type\+Doc@{Print\+Type\+Doc}}
\index{Print\+Type\+Doc@{Print\+Type\+Doc}!mlpack\+::bindings\+::python@{mlpack\+::bindings\+::python}}
\subsubsection{Print\+Type\+Doc()\hspace{0.1cm}{\footnotesize\ttfamily [6/6]}}
{\footnotesize\ttfamily void mlpack\+::bindings\+::python\+::\+Print\+Type\+Doc (\begin{DoxyParamCaption}\item[{const \textbf{ util\+::\+Param\+Data} \&}]{data,  }\item[{const void $\ast$}]{,  }\item[{void $\ast$}]{output }\end{DoxyParamCaption})}



Print the command-\/line type of an option into a string. 



Definition at line 72 of file print\+\_\+type\+\_\+doc.\+hpp.

\mbox{\label{namespacemlpack_1_1bindings_1_1python_a0d643eb3c0bdd232a1c6e50fbcb943d4}} 
\index{mlpack\+::bindings\+::python@{mlpack\+::bindings\+::python}!Print\+Value@{Print\+Value}}
\index{Print\+Value@{Print\+Value}!mlpack\+::bindings\+::python@{mlpack\+::bindings\+::python}}
\subsubsection{Print\+Value()\hspace{0.1cm}{\footnotesize\ttfamily [1/2]}}
{\footnotesize\ttfamily std\+::string mlpack\+::bindings\+::python\+::\+Print\+Value (\begin{DoxyParamCaption}\item[{const T \&}]{value,  }\item[{bool}]{quotes }\end{DoxyParamCaption})\hspace{0.3cm}{\ttfamily [inline]}}



Given a parameter type, print the corresponding value. 

\mbox{\label{namespacemlpack_1_1bindings_1_1python_a92ef6a64a9ca64c2cf8dca28e9d77674}} 
\index{mlpack\+::bindings\+::python@{mlpack\+::bindings\+::python}!Print\+Value@{Print\+Value}}
\index{Print\+Value@{Print\+Value}!mlpack\+::bindings\+::python@{mlpack\+::bindings\+::python}}
\subsubsection{Print\+Value()\hspace{0.1cm}{\footnotesize\ttfamily [2/2]}}
{\footnotesize\ttfamily std\+::string mlpack\+::bindings\+::python\+::\+Print\+Value (\begin{DoxyParamCaption}\item[{const bool \&}]{value,  }\item[{bool}]{quotes }\end{DoxyParamCaption})\hspace{0.3cm}{\ttfamily [inline]}}

\mbox{\label{namespacemlpack_1_1bindings_1_1python_a6735678589340d2ecc4d8f0c8746179b}} 
\index{mlpack\+::bindings\+::python@{mlpack\+::bindings\+::python}!Program\+Call@{Program\+Call}}
\index{Program\+Call@{Program\+Call}!mlpack\+::bindings\+::python@{mlpack\+::bindings\+::python}}
\subsubsection{Program\+Call()\hspace{0.1cm}{\footnotesize\ttfamily [1/2]}}
{\footnotesize\ttfamily std\+::string mlpack\+::bindings\+::python\+::\+Program\+Call (\begin{DoxyParamCaption}\item[{const std\+::string \&}]{program\+Name,  }\item[{Args...}]{args }\end{DoxyParamCaption})}



Given a name of a binding and a variable number of arguments (and their contents), print the corresponding function call. 

\mbox{\label{namespacemlpack_1_1bindings_1_1python_af279250fe16b29931b6ec5f9c5196962}} 
\index{mlpack\+::bindings\+::python@{mlpack\+::bindings\+::python}!Program\+Call@{Program\+Call}}
\index{Program\+Call@{Program\+Call}!mlpack\+::bindings\+::python@{mlpack\+::bindings\+::python}}
\subsubsection{Program\+Call()\hspace{0.1cm}{\footnotesize\ttfamily [2/2]}}
{\footnotesize\ttfamily std\+::string mlpack\+::bindings\+::python\+::\+Program\+Call (\begin{DoxyParamCaption}\item[{const std\+::string \&}]{program\+Name }\end{DoxyParamCaption})\hspace{0.3cm}{\ttfamily [inline]}}



Given the name of a binding, print a program call assuming that all options are specified. 

\mbox{\label{namespacemlpack_1_1bindings_1_1python_adea6945f820d4d090266903135f35729}} 
\index{mlpack\+::bindings\+::python@{mlpack\+::bindings\+::python}!Serialize\+In@{Serialize\+In}}
\index{Serialize\+In@{Serialize\+In}!mlpack\+::bindings\+::python@{mlpack\+::bindings\+::python}}
\subsubsection{Serialize\+In()}
{\footnotesize\ttfamily void mlpack\+::bindings\+::python\+::\+Serialize\+In (\begin{DoxyParamCaption}\item[{T $\ast$}]{t,  }\item[{const std\+::string \&}]{str,  }\item[{const std\+::string \&}]{name }\end{DoxyParamCaption})}



Definition at line 34 of file serialization.\+hpp.

\mbox{\label{namespacemlpack_1_1bindings_1_1python_a6273a497a8744775c3c90fced897dd55}} 
\index{mlpack\+::bindings\+::python@{mlpack\+::bindings\+::python}!Serialize\+Out@{Serialize\+Out}}
\index{Serialize\+Out@{Serialize\+Out}!mlpack\+::bindings\+::python@{mlpack\+::bindings\+::python}}
\subsubsection{Serialize\+Out()}
{\footnotesize\ttfamily std\+::string mlpack\+::bindings\+::python\+::\+Serialize\+Out (\begin{DoxyParamCaption}\item[{T $\ast$}]{t,  }\item[{const std\+::string \&}]{name }\end{DoxyParamCaption})}



Definition at line 22 of file serialization.\+hpp.

\mbox{\label{namespacemlpack_1_1bindings_1_1python_ad9aef93ac2450f69e902b2bae75296fa}} 
\index{mlpack\+::bindings\+::python@{mlpack\+::bindings\+::python}!Strip\+Type@{Strip\+Type}}
\index{Strip\+Type@{Strip\+Type}!mlpack\+::bindings\+::python@{mlpack\+::bindings\+::python}}
\subsubsection{Strip\+Type()}
{\footnotesize\ttfamily void mlpack\+::bindings\+::python\+::\+Strip\+Type (\begin{DoxyParamCaption}\item[{const std\+::string \&}]{input\+Type,  }\item[{std\+::string \&}]{stripped\+Type,  }\item[{std\+::string \&}]{printed\+Type,  }\item[{std\+::string \&}]{defaults\+Type }\end{DoxyParamCaption})\hspace{0.3cm}{\ttfamily [inline]}}



Given an input type like, e.\+g., \char`\"{}\+Logistic\+Regression$<$$>$\char`\"{}, return three types that can be used in Python code. 

stripped\+Type will be a type with no template parameters (e.\+g. \char`\"{}\+Logistic\+Regression\char`\"{}), printed\+Type will be a printable type with the template parameters (e.\+g. \char`\"{}\+Logistic\+Regression[$\,$]\char`\"{}), and defaults\+Type will be a printable type with a default template parameter (e.\+g. \char`\"{}\+Logistic\+Regression[\+T=$\ast$]\char`\"{}) that can be used for class definitions. 

Definition at line 28 of file strip\+\_\+type.\+hpp.



Referenced by Import\+Decl(), Print\+Class\+Defn(), Print\+Input\+Processing(), and Print\+Output\+Processing().



\subsection{Variable Documentation}
\mbox{\label{namespacemlpack_1_1bindings_1_1python_a24d855d329269931b59bdf1b36706a88}} 
\index{mlpack\+::bindings\+::python@{mlpack\+::bindings\+::python}!program\+Name@{program\+Name}}
\index{program\+Name@{program\+Name}!mlpack\+::bindings\+::python@{mlpack\+::bindings\+::python}}
\subsubsection{program\+Name}
{\footnotesize\ttfamily std\+::string program\+Name}

