.\" Text automatically generated by txt2man .TH mlpack_preprocess_binarize "26 December 2016" "" "" .SH NAME \fBmlpack_preprocess_binarize \fP- binarize data .SH SYNOPSIS .nf .fam C \fBmlpack_preprocess_binarize\fP [\fB-h\fP] [\fB-v\fP] .fam T .fi .fam T .fi .SH DESCRIPTION This utility takes a dataset and binarizes the variables into either 0 or 1 given threshold. User can apply binarization on a dimension or the whole dataset. A dimension can be specified using \fB--dimension\fP (\fB-d\fP) option. Threshold can also be specified with the \fB--threshold\fP (\fB-t\fP) option; The default is 0.0. .PP The program does not modify the original file, but instead makes a separate file to save the binarized data; The program requires you to specify the file name with \fB--output_file\fP (\fB-o\fP). .PP For example, if we want to make all variables greater than 5 in dataset to 1 and ones that are less than or equal to 5.0 to 0, and save the result to result.csv, we could run .PP $ \fBmlpack_preprocess_binarize\fP \fB-i\fP dataset.csv \fB-t\fP 5 \fB-o\fP result.csv .PP But if we want to apply this to only the first (0th) dimension of the dataset, we could run .PP $ \fBmlpack_preprocess_binarize\fP \fB-i\fP dataset.csv \fB-t\fP 5 \fB-d\fP 0 \fB-o\fP result.csv .SH REQUIRED INPUT OPTIONS .TP .B \fB--input_file\fP (\fB-i\fP) [string] File containing data. .SH OPTIONAL INPUT OPTIONS .TP .B \fB--dimension\fP (\fB-d\fP) [int] Dimension to apply the binarization. If not set, the program will binarize every dimension by default. Default value 0. .TP .B \fB--help\fP (\fB-h\fP) Default help info. .TP .B \fB--info\fP [string] Get help on a specific module or option. Default value ''. .TP .B \fB--threshold\fP (\fB-t\fP) [double] Threshold to be applied for binarization. If not set, the threshold defaults to 0.0. Default value 0. .TP .B \fB--verbose\fP (\fB-v\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) Display the version of mlpack. .SH OPTIONAL OUTPUT OPTIONS .TP .B \fB--output_file\fP (\fB-o\fP) [string] File to save the output. Default value ''. .SH ADDITIONAL INFORMATION .SH ADDITIONAL INFORMATION For further information, including relevant papers, citations, and theory, For further information, including relevant papers, citations, and theory, consult the documentation found at http://www.mlpack.org or included with your consult the documentation found at http://www.mlpack.org or included with your DISTRIBUTION OF MLPACK. DISTRIBUTION OF MLPACK.