NAME¶
nbc - parametric naive bayes classifier
SYNOPSIS¶
nbc [-h] [-v] -T string -t string [-I] [-l string] [-o string] -V
DESCRIPTION¶
This program trains the Naive Bayes classifier on the given labeled training set
and then uses the trained classifier to classify the points in the given test
set.
Labels are expected to be the last row of the training set (
--train_file), but labels can also be passed in separately as their own
file (
--labels_file).
The '
--incremental_variance' option can be used to force the training to
use an incremental algorithm for calculating variance. This is slower, but can
help avoid loss of precision in some cases.
REQUIRED OPTIONS¶
- --test_file (-T) [string]
- A file containing the test set.
- --train_file (-t) [string]
- A file containing the training set.
OPTIONS¶
- --help (-h)
- Default help info.
- --incremental_variance (-I)
- The variance of each class will be calculated incrementally.
- --info [string]
- Get help on a specific module or option. Default value ''.
- --labels_file (-l) [string]
- A file containing labels for the training set. Default value ''.
- --output (-o) [string]
- The file in which the predicted labels for the test set will be written.
Default value 'output.csv'.
- --verbose (-v)
- Display informational messages and the full list of parameters and timers
at the end of execution.
- --version (-V)
- Display the version of mlpack.
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.