C++ API Reference for Intel® Data Analytics Acceleration Library 2020 Update 1

Static Public Member Functions | List of all members
Model Class Reference

Multinomial naive Bayes model. More...

Static Public Member Functions

template<typename modelFPType >
static DAAL_EXPORT
services::SharedPtr< Model
create (size_t nFeatures, const interface1::Parameter &parameter, services::Status *stat=NULL)
 
template<typename modelFPType >
static DAAL_EXPORT
services::SharedPtr< Model
create (size_t nFeatures, const interface2::Parameter &parameter, services::Status *stat=NULL)
 

Class Declaration

Constructor & Destructor Documentation

Model ( )
inline

Empty constructor for deserialization

Deprecated:
This item will be removed in a future release. Use Model::create instead.
DAAL_EXPORT Model ( size_t  nFeatures,
const interface1::Parameter parameter,
modelFPType  dummy 
)

Constructs multinomial naive Bayes model

Parameters
[in]nFeaturesThe number of features
[in]parameterThe multinomial naive Bayes parameter
[in]dummyDummy variable for the templated constructor
Deprecated:
This item will be removed in a future release. Use Model::create instead.
DAAL_EXPORT Model ( size_t  nFeatures,
const interface2::Parameter parameter,
modelFPType  dummy 
)

Constructs multinomial naive Bayes model

Parameters
[in]nFeaturesThe number of features
[in]parameterThe multinomial naive Bayes parameter
[in]dummyDummy variable for the templated constructor
Deprecated:
This item will be removed in a future release. Use Model::create instead.

Member Function Documentation

static DAAL_EXPORT services::SharedPtr<Model> create ( size_t  nFeatures,
const interface1::Parameter parameter,
services::Status *  stat = NULL 
)
static

Constructs multinomial naive Bayes model

Parameters
[in]nFeaturesThe number of features
[in]parameterThe multinomial naive Bayes parameter
[out]statStatus of the model construction
static DAAL_EXPORT services::SharedPtr<Model> create ( size_t  nFeatures,
const interface2::Parameter parameter,
services::Status *  stat = NULL 
)
static

Constructs multinomial naive Bayes model

Parameters
[in]nFeaturesThe number of features
[in]parameterThe multinomial naive Bayes parameter
[out]statStatus of the model construction
data_management::NumericTablePtr getAuxTable ( )
inline

Returns a pointer to the Numeric Table with logarithms of the conditional probabilities

Returns
Pointer to the Numeric Table with logarithms of the conditional probabilities
data_management::NumericTablePtr getLogP ( )
inline

Returns a pointer to the Numeric Table with logarithms of priors

Returns
Pointer to the Numeric Table with logarithms of priors
data_management::NumericTablePtr getLogTheta ( )
inline

Returns a pointer to the Numeric Table with logarithms of the conditional probabilities

Returns
Pointer to the Numeric Table with logarithms of the conditional probabilities
size_t getNumberOfFeatures ( ) const
inline

Retrieves the number of features in the dataset was used on the training stage

Returns
Number of features in the dataset was used on the training stage

The documentation for this class was generated from the following file:

For more complete information about compiler optimizations, see our Optimization Notice.