mlpack
master
|
Given a dataset of a particular datatype, replace user-specified missing value with a variable dependent on the StrategyType and MapperType. More...
Public Member Functions | |
Imputer (MapperType mapper, bool columnMajor=true) | |
Imputer (MapperType mapper, StrategyType strategy, bool columnMajor=true) | |
void | Impute (arma::Mat< T > &input, const std::string &missingValue, const size_t dimension) |
Given an input dataset, replace missing values of a dimension with given imputation strategy. More... | |
const MapperType & | Mapper () const |
Get the mapper. More... | |
MapperType & | Mapper () |
Modify the given mapper (be careful!) More... | |
const StrategyType & | Strategy () const |
Get the strategy. More... | |
StrategyType & | Strategy () |
Modify the given given strategy (be careful!) More... | |
Private Attributes | |
bool | columnMajor |
MapperType | mapper |
StrategyType | strategy |
Given a dataset of a particular datatype, replace user-specified missing value with a variable dependent on the StrategyType and MapperType.
T | Type of armadillo matrix used for imputation strategy. |
MapperType | DatasetMapper that is used to hold dataset information. |
StrategyType | Imputation strategy used. |
Definition at line 33 of file imputer.hpp.
|
inline |
Definition at line 36 of file imputer.hpp.
|
inline |
Definition at line 43 of file imputer.hpp.
|
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.
input | Input dataset to apply imputation. missingValue User defined missing value; it can be anything. |
dimension | Dimension to apply the imputation. |
Definition at line 60 of file imputer.hpp.
References mlpack::data::Imputer< T, MapperType, StrategyType >::columnMajor, mlpack::data::Imputer< T, MapperType, StrategyType >::mapper, and mlpack::data::Imputer< T, MapperType, StrategyType >::strategy.
|
inline |
Get the mapper.
Definition at line 75 of file imputer.hpp.
References mlpack::data::Imputer< T, MapperType, StrategyType >::mapper.
|
inline |
Modify the given mapper (be careful!)
Definition at line 78 of file imputer.hpp.
References mlpack::data::Imputer< T, MapperType, StrategyType >::mapper.
|
inline |
Get the strategy.
Definition at line 69 of file imputer.hpp.
References mlpack::data::Imputer< T, MapperType, StrategyType >::strategy.
|
inline |
Modify the given given strategy (be careful!)
Definition at line 72 of file imputer.hpp.
References mlpack::data::Imputer< T, MapperType, StrategyType >::strategy.
|
private |
Definition at line 88 of file imputer.hpp.
Referenced by mlpack::data::Imputer< T, MapperType, StrategyType >::Impute().
|
private |
Definition at line 85 of file imputer.hpp.
Referenced by mlpack::data::Imputer< T, MapperType, StrategyType >::Impute(), and mlpack::data::Imputer< T, MapperType, StrategyType >::Mapper().
|
private |
Definition at line 82 of file imputer.hpp.
Referenced by mlpack::data::Imputer< T, MapperType, StrategyType >::Impute(), and mlpack::data::Imputer< T, MapperType, StrategyType >::Strategy().