C++ API Reference for Intel® Data Analytics Acceleration Library 2019 Update 4

multinomial_naive_bayes_predict_types.h
1 /* file: multinomial_naive_bayes_predict_types.h */
2 /*******************************************************************************
3 * Copyright 2014-2019 Intel Corporation.
4 *
5 * This software and the related documents are Intel copyrighted materials, and
6 * your use of them is governed by the express license under which they were
7 * provided to you (License). Unless the License provides otherwise, you may not
8 * use, modify, copy, publish, distribute, disclose or transmit this software or
9 * the related documents without Intel's prior written permission.
10 *
11 * This software and the related documents are provided as is, with no express
12 * or implied warranties, other than those that are expressly stated in the
13 * License.
14 *******************************************************************************/
15 
16 /*
17 //++
18 // Naive Bayes classifier parameter structure used in the prediction stage
19 //--
20 */
21 
22 #ifndef __NAIVE_BAYES_PREDICT_TYPES_H__
23 #define __NAIVE_BAYES_PREDICT_TYPES_H__
24 
25 #include "algorithms/algorithm.h"
26 #include "algorithms/naive_bayes/multinomial_naive_bayes_model.h"
27 #include "data_management/data/data_collection.h"
28 #include "algorithms/classifier/classifier_predict_types.h"
29 
30 namespace daal
31 {
32 namespace algorithms
33 {
34 namespace multinomial_naive_bayes
35 {
45 namespace prediction
46 {
47 
52 enum Method
53 {
54  defaultDense = 0,
55  fastCSR = 1
56 };
57 
58 namespace interface1
59 {
60 
65 class DAAL_EXPORT Input : public classifier::prediction::Input
66 {
67  typedef classifier::prediction::Input super;
68 public:
69  Input();
70  Input(const Input& other);
71  virtual ~Input() {}
72 
73  using super::get;
74  using super::set;
75 
81  data_management::NumericTablePtr get(classifier::prediction::NumericTableInputId id) const;
82 
88  multinomial_naive_bayes::ModelPtr get(classifier::prediction::ModelInputId id) const;
89 
95  void set(classifier::prediction::NumericTableInputId id, const data_management::NumericTablePtr &ptr);
96 
102  void set(classifier::prediction::ModelInputId id, const multinomial_naive_bayes::ModelPtr &ptr);
103 
111  services::Status check(const daal::algorithms::Parameter *parameter, int method) const DAAL_C11_OVERRIDE;
112 };
113 
114 } // namespace interface1
115 using interface1::Input;
116 
117 } // namespace prediction
119 } // namespace multinomial_naive_bayes
120 } // namespace algorithms
121 } // namespace daal
122 #endif
daal::algorithms::multinomial_naive_bayes::prediction::fastCSR
Definition: multinomial_naive_bayes_predict_types.h:55
daal
Definition: algorithm_base_common.h:31
daal::algorithms::classifier::prediction::ModelInputId
ModelInputId
Definition: classifier_predict_types.h:64
daal::algorithms::classifier::prediction::NumericTableInputId
NumericTableInputId
Definition: classifier_predict_types.h:53
daal::algorithms::multinomial_naive_bayes::prediction::interface1::Input
Input objects in the prediction stage of the multinomial naive Bayes algorithm.
Definition: multinomial_naive_bayes_predict_types.h:65
daal::algorithms::classifier::prediction::prediction
Definition: classifier_predict_types.h:76
daal::algorithms::multinomial_naive_bayes::prediction::Method
Method
Definition: multinomial_naive_bayes_predict_types.h:52
daal::algorithms::multinomial_naive_bayes::prediction::defaultDense
Definition: multinomial_naive_bayes_predict_types.h:54

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