imputetransform

Fill missing values of the test records.

Attention: Available only with Activate commercial edition.

Syntax

imputed_data = imputetransform(parameters,X)

Inputs

X
Input data to be imputed.
Type: double
Dimension: vector | matrix
parameters
Struct containing values computed using training data and returned by the impute function.
Type: double | integer
Dimension: struct

Outputs

imputed_data
Imputed input records.
Type: integer
Dimension: matrix

Example

Usage of imputetransform

X = [1 2 3;
     NaN 3 3;
     7 6 2;
     8 NaN NaN];
[X_scaled, parameters] = impute(X); %by default strategy is 'mean' 
X_new = imputetransform(parameters, [1 2 3; 4 NaN 6]);
> X_new
X_new = [Matrix] 2 x 3
1.00000 2.00000 3.00000
4.00000 3.66667 6.00000