MeanImputation< T > Class Template Reference

A simple mean imputation class. More...

Public Member Functions

void Impute (arma::Mat< T > &input, const T &mappedValue, const size_t dimension, const bool columnMajor=true)
 Impute function searches through the input looking for mappedValue and replaces it with the mean of the given dimension. More...

 

Detailed Description


template
<
typename
T
>

class mlpack::data::MeanImputation< T >

A simple mean imputation class.

Template Parameters
TType of armadillo matrix

Definition at line 24 of file mean_imputation.hpp.

Member Function Documentation

◆ Impute()

void Impute ( arma::Mat< T > &  input,
const T &  mappedValue,
const size_t  dimension,
const bool  columnMajor = true 
)
inline

Impute function searches through the input looking for mappedValue and replaces it with the mean of the given dimension.

The result is overwritten to the input matrix.

Parameters
inputMatrix that contains mappedValue.
mappedValueValue that the user wants to get rid of.
dimensionIndex of the dimension of the mappedValue.
columnMajorState of whether the input matrix is columnMajor or not.

Definition at line 37 of file mean_imputation.hpp.

References Log::Fatal.


The documentation for this class was generated from the following file:
  • /home/jenkins-mlpack/mlpack.org/_src/mlpack-3.3.2/src/mlpack/core/data/imputation_methods/mean_imputation.hpp