Developer Guide and Reference

  • 2021.3
  • 06/28/2021
  • Public Content
Contents

Online Processing

You can use the Naïve Bayes classifier algorithm in the online processing mode only at the training stage.
This computation mode assumes that the data arrives in blocks LaTex Math image..

Training

Naïve Bayes classifier training in the online processing mode follows the general workflow described in Classification Usage Model.
Naïve Bayes classifier in the online processing mode accepts the input described below. Pass the
Input ID
as a parameter to the methods that provide input for your algorithm. For more details, see Algorithms.
Input ID
Input
data
Pointer to the LaTex Math image. numeric table that represents the current data block.
labels
Pointer to the LaTex Math image. numeric table with class labels associated with the current data block.
These tables can be objects of any class derived from
NumericTable
.
Naïve Bayes classifier in the online processing mode has the following parameters:
Parameter
Default Value
Description
algorithmFPType
float
The floating-point type that the algorithm uses for intermediate computations. Can be
float
or
double
.
method
defaultDense
Available computation methods for the Naïve Bayes classifier:
  • defaultDense
    - default performance-oriented method
  • fastCSR
    - performance-oriented method for CSR numeric tables
nClasses
Not applicable
The number of classes. A required parameter.
priorClassEstimates
LaTex Math image.
Vector of size
nClasses
that contains prior class estimates. The default value applies to each vector element.
alpha
1
Vector of size
p
that contains the imagined occurrences of features. The default value applies to each vector element.
For a description of the output, refer to Classification Usage Model.

Product and Performance Information

1

Performance varies by use, configuration and other factors. Learn more at www.Intel.com/PerformanceIndex.