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

multinomial_naive_bayes_predict_types.h
1 /* file: multinomial_naive_bayes_predict_types.h */
2 /*******************************************************************************
3 * Copyright 2014-2020 Intel Corporation
4 *
5 * Licensed under the Apache License, Version 2.0 (the "License");
6 * you may not use this file except in compliance with the License.
7 * You may obtain a copy of the License at
8 *
9 * http://www.apache.org/licenses/LICENSE-2.0
10 *
11 * Unless required by applicable law or agreed to in writing, software
12 * distributed under the License is distributed on an "AS IS" BASIS,
13 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14 * See the License for the specific language governing permissions and
15 * limitations under the License.
16 *******************************************************************************/
17 
18 /*
19 //++
20 // Naive Bayes classifier parameter structure used in the prediction stage
21 //--
22 */
23 
24 #ifndef __NAIVE_BAYES_PREDICT_TYPES_H__
25 #define __NAIVE_BAYES_PREDICT_TYPES_H__
26 
27 #include "algorithms/algorithm.h"
28 #include "algorithms/naive_bayes/multinomial_naive_bayes_model.h"
29 #include "data_management/data/data_collection.h"
30 #include "algorithms/classifier/classifier_predict_types.h"
31 
32 namespace daal
33 {
34 namespace algorithms
35 {
36 namespace multinomial_naive_bayes
37 {
47 namespace prediction
48 {
49 
54 enum Method
55 {
56  defaultDense = 0,
57  fastCSR = 1
58 };
59 
60 namespace interface1
61 {
62 
67 class DAAL_EXPORT Input : public classifier::prediction::Input
68 {
69  typedef classifier::prediction::Input super;
70 public:
71  Input();
72  Input(const Input& other);
73  virtual ~Input() {}
74 
75  using super::get;
76  using super::set;
77 
83  data_management::NumericTablePtr get(classifier::prediction::NumericTableInputId id) const;
84 
90  multinomial_naive_bayes::ModelPtr get(classifier::prediction::ModelInputId id) const;
91 
97  void set(classifier::prediction::NumericTableInputId id, const data_management::NumericTablePtr &ptr);
98 
104  void set(classifier::prediction::ModelInputId id, const multinomial_naive_bayes::ModelPtr &ptr);
105 
113  services::Status check(const daal::algorithms::Parameter *parameter, int method) const DAAL_C11_OVERRIDE;
114 };
115 
116 } // namespace interface1
117 using interface1::Input;
118 
119 } // namespace prediction
121 } // namespace multinomial_naive_bayes
122 } // namespace algorithms
123 } // namespace daal
124 #endif
daal::algorithms::neural_networks::prediction::prediction
Definition: neural_networks_prediction_result.h:55
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:67
daal::algorithms::classifier::prediction::NumericTableInputId
NumericTableInputId
Definition: classifier_predict_types.h:55
daal::algorithms::classifier::prediction::ModelInputId
ModelInputId
Definition: classifier_predict_types.h:66
daal::algorithms::multinomial_naive_bayes::prediction::fastCSR
Definition: multinomial_naive_bayes_predict_types.h:57
daal::algorithms::multinomial_naive_bayes::prediction::defaultDense
Definition: multinomial_naive_bayes_predict_types.h:56
daal::algorithms::multinomial_naive_bayes::prediction::Method
Method
Definition: multinomial_naive_bayes_predict_types.h:54

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