ListwiseDeletion< T > Class Template Reference

A complete-case analysis to remove the values containing mappedValue. 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 remove the whole row or column. More...

 

Detailed Description


template
<
typename
T
>

class mlpack::data::ListwiseDeletion< T >

A complete-case analysis to remove the values containing mappedValue.

Removes all data for a case that has one or more missing values.

Template Parameters
TType of armadillo matrix

Definition at line 25 of file listwise_deletion.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 remove the whole row or column.

The result is overwritten to the input.

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 listwise_deletion.hpp.


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