mlpack_preprocess_one_hot_encoding(1) | User Commands | mlpack_preprocess_one_hot_encoding(1) |
mlpack_preprocess_one_hot_encoding - one hot encoding
mlpack_preprocess_one_hot_encoding -d vector -i string [-V bool] [-o string] [-h -v]
This utility takes a dataset and a vector of indices and does one-hot encoding of the respective features at those indices. Indices represent the IDs of the dimensions to be one-hot encoded.
The output matrix with encoded features may be saved with the '--output_file (-o)' parameters.
So, a simple example where we want to encode 1st and 3rd feature from dataset ’X.csv' into 'X_output.csv' would be
$ mlpack_preprocess_one_hot_encoding --input_file X.csv --output_file X_ouput.csv --dimensions 1 --dimensions 3
For further information, including relevant papers, citations, and theory, consult the documentation found at http://www.mlpack.org or included with your distribution of mlpack.
12 December 2020 | mlpack-3.4.2 |