mlpack
|
Given a dataset of a particular datatype, replace user-specified missing value with a variable dependent on the StrategyType and MapperType. More...
#include <imputer.hpp>
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 StrategyType & | Strategy () const |
Get the strategy. | |
StrategyType & | Strategy () |
Modify the given strategy. | |
const MapperType & | Mapper () const |
Get the mapper. | |
MapperType & | Mapper () |
Modify the given mapper. | |
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. |
|
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. |