Description Usage Arguments Value Examples
Decodes one hot encoding generated by one_hot_encode-function utilizing matrix attributes generated in one_hot_encode-function.
1 | one_hot_decode(mat, verbose = 1)
|
mat |
A matrix created by one_hot_encode-function and passed through impute_xgboost |
verbose |
Should decoding progress be printed |
A data.frame or data.table depending on the original class given to one_hot_encode-function. Column classes will be retained.
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)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.