one_hot_decode: Decode one hot encoding

Description Usage Arguments Value Examples

Description

Decodes one hot encoding generated by one_hot_encode-function utilizing matrix attributes generated in one_hot_encode-function.

Usage

1
one_hot_decode(mat, verbose = 1)

Arguments

mat

A matrix created by one_hot_encode-function and passed through impute_xgboost

verbose

Should decoding progress be printed

Value

A data.frame or data.table depending on the original class given to one_hot_encode-function. Column classes will be retained.

Examples

1
2
3
4
mat = one_hot_encode(iris)
mis_mat = generate_na(mat)
imp_mat = impute_xgboost(mis_mat)
imp_iris = one_hot_decode(imp_mat)

yatzy/xgbimpute documentation built on June 7, 2019, 8:16 p.m.