\section{Imputer$<$ T, Mapper\+Type, Strategy\+Type $>$ Class Template Reference}
\label{classmlpack_1_1data_1_1Imputer}\index{Imputer$<$ T, Mapper\+Type, Strategy\+Type $>$@{Imputer$<$ T, Mapper\+Type, Strategy\+Type $>$}}


Given a dataset of a particular datatype, replace user-\/specified missing value with a variable dependent on the Strategy\+Type and Mapper\+Type.  


\subsection*{Public Member Functions}
\begin{DoxyCompactItemize}
\item 
\textbf{ Imputer} (Mapper\+Type mapper, bool column\+Major=true)
\item 
\textbf{ Imputer} (Mapper\+Type mapper, Strategy\+Type strategy, bool column\+Major=true)
\item 
void \textbf{ Impute} (arma\+::\+Mat$<$ T $>$ \&input, const std\+::string \&missing\+Value, const size\+\_\+t dimension)
\begin{DoxyCompactList}\small\item\em Given an input dataset, replace missing values of a dimension with given imputation strategy. \end{DoxyCompactList}\item 
const Mapper\+Type \& \textbf{ Mapper} () const
\begin{DoxyCompactList}\small\item\em Get the mapper. \end{DoxyCompactList}\item 
Mapper\+Type \& \textbf{ Mapper} ()
\begin{DoxyCompactList}\small\item\em Modify the given mapper. \end{DoxyCompactList}\item 
const Strategy\+Type \& \textbf{ Strategy} () const
\begin{DoxyCompactList}\small\item\em Get the strategy. \end{DoxyCompactList}\item 
Strategy\+Type \& \textbf{ Strategy} ()
\begin{DoxyCompactList}\small\item\em Modify the given strategy. \end{DoxyCompactList}\end{DoxyCompactItemize}


\subsection{Detailed Description}
\subsubsection*{template$<$typename T, typename Mapper\+Type, typename Strategy\+Type$>$\newline
class mlpack\+::data\+::\+Imputer$<$ T, Mapper\+Type, Strategy\+Type $>$}

Given a dataset of a particular datatype, replace user-\/specified missing value with a variable dependent on the Strategy\+Type and Mapper\+Type. 


\begin{DoxyTemplParams}{Template Parameters}
{\em T} & Type of armadillo matrix used for imputation strategy. \\
\hline
{\em Mapper\+Type} & \doxyref{Dataset\+Mapper}{p.}{classmlpack_1_1data_1_1DatasetMapper} that is used to hold dataset information. \\
\hline
{\em Strategy\+Type} & Imputation strategy used. \\
\hline
\end{DoxyTemplParams}


Definition at line 33 of file imputer.\+hpp.



\subsection{Constructor \& Destructor Documentation}
\mbox{\label{classmlpack_1_1data_1_1Imputer_af07cd09470861d680086ad905201ee6f}} 
\index{mlpack\+::data\+::\+Imputer@{mlpack\+::data\+::\+Imputer}!Imputer@{Imputer}}
\index{Imputer@{Imputer}!mlpack\+::data\+::\+Imputer@{mlpack\+::data\+::\+Imputer}}
\subsubsection{Imputer()\hspace{0.1cm}{\footnotesize\ttfamily [1/2]}}
{\footnotesize\ttfamily \textbf{ Imputer} (\begin{DoxyParamCaption}\item[{Mapper\+Type}]{mapper,  }\item[{bool}]{column\+Major = {\ttfamily true} }\end{DoxyParamCaption})\hspace{0.3cm}{\ttfamily [inline]}}



Definition at line 36 of file imputer.\+hpp.

\mbox{\label{classmlpack_1_1data_1_1Imputer_a47c7f6712c90870900f25e87d606c967}} 
\index{mlpack\+::data\+::\+Imputer@{mlpack\+::data\+::\+Imputer}!Imputer@{Imputer}}
\index{Imputer@{Imputer}!mlpack\+::data\+::\+Imputer@{mlpack\+::data\+::\+Imputer}}
\subsubsection{Imputer()\hspace{0.1cm}{\footnotesize\ttfamily [2/2]}}
{\footnotesize\ttfamily \textbf{ Imputer} (\begin{DoxyParamCaption}\item[{Mapper\+Type}]{mapper,  }\item[{Strategy\+Type}]{strategy,  }\item[{bool}]{column\+Major = {\ttfamily true} }\end{DoxyParamCaption})\hspace{0.3cm}{\ttfamily [inline]}}



Definition at line 43 of file imputer.\+hpp.



\subsection{Member Function Documentation}
\mbox{\label{classmlpack_1_1data_1_1Imputer_a3b5626c5417b3b150766d6f4662af835}} 
\index{mlpack\+::data\+::\+Imputer@{mlpack\+::data\+::\+Imputer}!Impute@{Impute}}
\index{Impute@{Impute}!mlpack\+::data\+::\+Imputer@{mlpack\+::data\+::\+Imputer}}
\subsubsection{Impute()}
{\footnotesize\ttfamily void Impute (\begin{DoxyParamCaption}\item[{arma\+::\+Mat$<$ T $>$ \&}]{input,  }\item[{const std\+::string \&}]{missing\+Value,  }\item[{const size\+\_\+t}]{dimension }\end{DoxyParamCaption})\hspace{0.3cm}{\ttfamily [inline]}}



Given an input dataset, replace missing values of a dimension with given imputation strategy. 

This function does not produce output matrix, but overwrites the result into the input matrix.


\begin{DoxyParams}{Parameters}
{\em input} & Input dataset to apply imputation. \\
\hline
{\em missing\+Value} & User defined missing value; it can be anything. \\
\hline
{\em dimension} & Dimension to apply the imputation. \\
\hline
\end{DoxyParams}


Definition at line 60 of file imputer.\+hpp.

\mbox{\label{classmlpack_1_1data_1_1Imputer_a87e363dfc694f34e372457cb97ddd06a}} 
\index{mlpack\+::data\+::\+Imputer@{mlpack\+::data\+::\+Imputer}!Mapper@{Mapper}}
\index{Mapper@{Mapper}!mlpack\+::data\+::\+Imputer@{mlpack\+::data\+::\+Imputer}}
\subsubsection{Mapper()\hspace{0.1cm}{\footnotesize\ttfamily [1/2]}}
{\footnotesize\ttfamily const Mapper\+Type\& Mapper (\begin{DoxyParamCaption}{ }\end{DoxyParamCaption}) const\hspace{0.3cm}{\ttfamily [inline]}}



Get the mapper. 



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

\mbox{\label{classmlpack_1_1data_1_1Imputer_a0acbae6a0e7eecc95f119a528ec03cf6}} 
\index{mlpack\+::data\+::\+Imputer@{mlpack\+::data\+::\+Imputer}!Mapper@{Mapper}}
\index{Mapper@{Mapper}!mlpack\+::data\+::\+Imputer@{mlpack\+::data\+::\+Imputer}}
\subsubsection{Mapper()\hspace{0.1cm}{\footnotesize\ttfamily [2/2]}}
{\footnotesize\ttfamily Mapper\+Type\& Mapper (\begin{DoxyParamCaption}{ }\end{DoxyParamCaption})\hspace{0.3cm}{\ttfamily [inline]}}



Modify the given mapper. 



Definition at line 78 of file imputer.\+hpp.

\mbox{\label{classmlpack_1_1data_1_1Imputer_aa84fc741ce7197be555b8aaeea41a090}} 
\index{mlpack\+::data\+::\+Imputer@{mlpack\+::data\+::\+Imputer}!Strategy@{Strategy}}
\index{Strategy@{Strategy}!mlpack\+::data\+::\+Imputer@{mlpack\+::data\+::\+Imputer}}
\subsubsection{Strategy()\hspace{0.1cm}{\footnotesize\ttfamily [1/2]}}
{\footnotesize\ttfamily const Strategy\+Type\& Strategy (\begin{DoxyParamCaption}{ }\end{DoxyParamCaption}) const\hspace{0.3cm}{\ttfamily [inline]}}



Get the strategy. 



Definition at line 69 of file imputer.\+hpp.

\mbox{\label{classmlpack_1_1data_1_1Imputer_a554de7f415b36c637a84114af459fe01}} 
\index{mlpack\+::data\+::\+Imputer@{mlpack\+::data\+::\+Imputer}!Strategy@{Strategy}}
\index{Strategy@{Strategy}!mlpack\+::data\+::\+Imputer@{mlpack\+::data\+::\+Imputer}}
\subsubsection{Strategy()\hspace{0.1cm}{\footnotesize\ttfamily [2/2]}}
{\footnotesize\ttfamily Strategy\+Type\& Strategy (\begin{DoxyParamCaption}{ }\end{DoxyParamCaption})\hspace{0.3cm}{\ttfamily [inline]}}



Modify the given strategy. 



Definition at line 72 of file imputer.\+hpp.



The documentation for this class was generated from the following file\+:\begin{DoxyCompactItemize}
\item 
/var/www/mlpack.\+ratml.\+org/mlpack.\+org/\+\_\+src/mlpack-\/3.\+3.\+2/src/mlpack/core/data/\textbf{ imputer.\+hpp}\end{DoxyCompactItemize}
