1mlpack_preprocess_binarize(1)General Commands Manuamllpack_preprocess_binarize(1)
2
3
4

NAME

6       mlpack_preprocess_binarize - binarize data
7

SYNOPSIS

9        mlpack_preprocess_binarize [-h] [-v]
10

DESCRIPTION

12       This  utility takes a dataset and binarizes the variables into either 0
13       or 1 given threshold. User can apply binarization on a dimension or the
14       whole  dataset.  A  dimension  can  be specified using --dimension (-d)
15       option. Threshold can also  be  specified  with  the  --threshold  (-t)
16       option; The default is 0.0.
17
18       The program does not modify the original file, but instead makes a sep‐
19       arate file to save the binarized data;  The  program  requires  you  to
20       specify the file name with --output_file (-o).
21
22       For example, if we want to make all variables greater than 5 in dataset
23       to 1 and ones that are less than or equal to 5.0 to  0,  and  save  the
24       result to result.csv, we could run
25
26       $ mlpack_preprocess_binarize -i dataset.csv -t 5 -o result.csv
27
28       But  if  we want to apply this to only the first (0th) dimension of the
29       dataset, we could run
30
31       $ mlpack_preprocess_binarize -i dataset.csv -t 5 -d 0 -o result.csv
32

REQUIRED INPUT OPTIONS

34       --input_file (-i) [string]
35              File containing data.
36

OPTIONAL INPUT OPTIONS

38       --dimension (-d) [int]
39              Dimension to apply the binarization. If  not  set,  the  program
40              will binarize every dimension by default. Default value 0.
41
42       --help (-h)
43              Default help info.
44
45       --info [string]
46              Get help on a specific module or option.  Default value ''.
47
48       --threshold (-t) [double]
49              Threshold  to  be  applied  for  binarization.  If  not set, the
50              threshold defaults to 0.0. Default value 0.
51
52       --verbose (-v)
53              Display informational messages and the full list  of  parameters
54              and timers at the end of execution.
55
56       --version (-V)
57              Display the version of mlpack.
58

OPTIONAL OUTPUT OPTIONS

60       --output_file (-o) [string]
61              File to save the output. Default value ''.
62

ADDITIONAL INFORMATION

ADDITIONAL INFORMATION

65       For further information, including relevant papers, citations, and the‐
66       ory, For further information, including relevant papers, citations, and
67       theory,  consult  the  documentation  found at http://www.mlpack.org or
68       included   with   your   consult    the    documentation    found    at
69       http://www.mlpack.org  or  included  with  your DISTRIBUTION OF MLPACK.
70       DISTRIBUTION OF MLPACK.
71
72
73
74                                                 mlpack_preprocess_binarize(1)
Impressum