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

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

PartialModel represents partial multinomial naive Bayes model. More...

Static Public Member Functions

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

Class Declaration

Constructor & Destructor Documentation

Empty constructor for deserialization

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

Constructs multinomial naive Bayes partial model

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

Constructs multinomial naive Bayes partial model

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

Member Function Documentation

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

Constructs multinomial naive Bayes partial model

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

Constructs multinomial naive Bayes partial model

Parameters
[in]nFeaturesThe number of features
[in]parameterThe multinomial naive Bayes parameter
[out]statStatus of the model construction
Returns
Multinomial naive Bayes partial model
size_t getNFeatures ( ) 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
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
void setNFeatures ( size_t  nFeatures)
inline

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

Parameters
[in]nFeaturesNumber 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.