.\" Text automatically generated by txt2man .TH mlpack_preprocess_one_hot_encoding 1 "12 December 2020" "mlpack-3.4.2" "User Commands" .SH NAME \fBmlpack_preprocess_one_hot_encoding \fP- one hot encoding .SH SYNOPSIS .nf .fam C \fBmlpack_preprocess_one_hot_encoding\fP \fB-d\fP \fIvector\fP \fB-i\fP \fIstring\fP [\fB-V\fP \fIbool\fP] [\fB-o\fP \fIstring\fP] [\fB-h\fP \fB-v\fP] .fam T .fi .fam T .fi .SH DESCRIPTION This utility takes a dataset and a \fIvector\fP 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. .PP The output matrix with encoded features may be saved with the '\fB--output_file\fP (\fB-o\fP)' parameters. .PP So, a simple example where we want to encode 1st and 3rd feature from dataset \(cqX.csv' into 'X_output.csv' would be .PP $ \fBmlpack_preprocess_one_hot_encoding\fP \fB--input_file\fP X.csv \fB--output_file\fP X_ouput.csv \fB--dimensions\fP 1 \fB--dimensions\fP 3 .RE .PP .SH REQUIRED INPUT OPTIONS .TP .B \fB--dimensions\fP (\fB-d\fP) [\fIvector\fP] Index of dimensions thatneed to be one-hot encoded. .TP .B \fB--input_file\fP (\fB-i\fP) [\fIstring\fP] Matrix containing data. .SH OPTIONAL INPUT OPTIONS .TP .B \fB--help\fP (\fB-h\fP) [\fIbool\fP] Default help info. .TP .B \fB--info\fP [\fIstring\fP] Print help on a specific option. Default value ''. .TP .B \fB--verbose\fP (\fB-v\fP) [\fIbool\fP] Display informational messages and the full list of parameters and timers at the end of execution. .TP .B \fB--version\fP (\fB-V\fP) [\fIbool\fP] Display the version of mlpack. .SH OPTIONAL OUTPUT OPTIONS .TP .B \fB--output_file\fP (\fB-o\fP) [\fIstring\fP] Matrix to save one-hot encoded features data to. .SH ADDITIONAL INFORMATION 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.