Developer Guide

Contents

Batch Processing

Naïve Bayes classifier in the batch processing mode follows the general workflow described in Usage Model: Training and Prediction.

Training

For a description of the input and output, refer to Usage Model: Training and Prediction.
At the training stage, Naïve Bayes classifier 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
1/
nClasses
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.

Prediction

For a description of the input and output, refer to Usage Model: Training and Prediction.
At the prediction stage, Naïve Bayes classifier 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
Performance-oriented computation method, the only method supported by the algorithm.
nClasses
Not applicable
The number of classes. A required parameter.

Product and Performance Information

1

Intel's compilers may or may not optimize to the same degree for non-Intel microprocessors for optimizations that are not unique to Intel microprocessors. These optimizations include SSE2, SSE3, and SSSE3 instruction sets and other optimizations. Intel does not guarantee the availability, functionality, or effectiveness of any optimization on microprocessors not manufactured by Intel. Microprocessor-dependent optimizations in this product are intended for use with Intel microprocessors. Certain optimizations not specific to Intel microarchitecture are reserved for Intel microprocessors. Please refer to the applicable product User and Reference Guides for more information regarding the specific instruction sets covered by this notice.

Notice revision #20110804