1mlpack_nbc(1)               General Commands Manual              mlpack_nbc(1)
2
3
4

NAME

6       mlpack_nbc - parametric naive bayes classifier
7

SYNOPSIS

9        mlpack_nbc [-h] [-v]
10

DESCRIPTION

12       This  program  trains  the  Naive Bayes classifier on the given labeled
13       training set, or loads a model from the given model file, and then  may
14       use that trained model to classify the points in a given test set.
15
16       Labels  are  expected  to be the last row of the training set (--train‐
17       ing_file), but labels can also be passed in  separately  as  their  own
18       file (--labels_file).  If training is not desired, a pre-existing model
19       can be loaded with the --input_model_file (-m) option.
20
21       The '--incremental_variance' option can be used to force  the  training
22       to  use  an  incremental  algorithm  for  calculating variance. This is
23       slower, but can help avoid loss of precision in some cases.
24
25       If classifying a test set is desired, the test set  should  be  in  the
26       file  specified  with  the --test_file (-T) option, and the classifica‐
27       tions will be saved to the file specified with the  --output_file  (-o)
28       option.  If  saving a trained model is desired, the --output_model_file
29       (-M) option should be given.
30

OPTIONAL INPUT OPTIONS

32       --help (-h)
33              Default help info.
34
35       --incremental_variance (-I)
36              The variance of each class will be calculated incrementally.
37
38       --info [string]
39              Get help on a specific module  or  option.   Default  value  ''.
40              --input_model_file  (-m)  [string]  File  containing input Naive
41              Bayes model.  Default value ''.
42
43       --labels_file (-l) [string]
44              A file containing labels for the training  set.   Default  value
45              ''.
46
47       --test_file (-T) [string]
48              A  file  containing  the  test  set. Default value ’'.  --train‐
49              ing_file (-t) [string]  A  file  containing  the  training  set.
50              Default value ''.
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              The file in which the predicted labels for the test set will  be
62              written.  Default  value  ''.  --output_model_file (-M) [string]
63              File to save trained Naive Bayes model to.  Default value ''.
64

ADDITIONAL INFORMATION

ADDITIONAL INFORMATION

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