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

kdtree_knn_classification_predict_types.h
1 /* file: kdtree_knn_classification_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 // Implementation of the K-Nearest Neighbors (kNN) algorithm interface
21 //--
22 */
23 
24 #ifndef __KDTREE_KNN_CLASSIFICATION_PREDICT_TYPES_H__
25 #define __KDTREE_KNN_CLASSIFICATION_PREDICT_TYPES_H__
26 
27 #include "algorithms/algorithm.h"
28 #include "data_management/data/data_serialize.h"
29 #include "algorithms/k_nearest_neighbors/kdtree_knn_classification_model.h"
30 #include "algorithms/classifier/classifier_predict_types.h"
31 
32 namespace daal
33 {
34 namespace algorithms
35 {
36 
40 namespace kdtree_knn_classification
41 {
42 
52 namespace prediction
53 {
54 
59 enum Method
60 {
61  defaultDense = 0
62 };
63 
67 namespace interface1
68 {
69 
74 class DAAL_EXPORT Input : public classifier::prediction::Input
75 {
76  typedef classifier::prediction::Input super;
77 public:
79  Input();
80 
81  using super::get;
82  using super::set;
83 
89  kdtree_knn_classification::ModelPtr get(classifier::prediction::ModelInputId id) const;
90 
96  void set(classifier::prediction::NumericTableInputId id, const data_management::NumericTablePtr &ptr);
97 
103  void set(classifier::prediction::ModelInputId id, const kdtree_knn_classification::interface1::ModelPtr & value);
104 
110  services::Status check(const daal::algorithms::Parameter *parameter, int method) const DAAL_C11_OVERRIDE;
111 };
112 
113 } // namespace interface1
114 
115 using interface1::Input;
116 
117 } // namespace prediction
119 } // namespace kdtree_knn_classification
120 } // namespace algorithms
121 } // namespace daal
122 
123 #endif
daal::algorithms::kdtree_knn_classification::prediction::Method
Method
Available methods for making KD-tree based kNN model-based prediction.
Definition: kdtree_knn_classification_predict_types.h:59
daal::algorithms::neural_networks::prediction::prediction
Definition: neural_networks_prediction_result.h:55
daal::algorithms::kdtree_knn_classification::prediction::defaultDense
Definition: kdtree_knn_classification_predict_types.h:61
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::math::abs::value
Definition: abs_types.h:88
daal::algorithms::kdtree_knn_classification::prediction::interface1::Input
Provides an interface for input objects for making KD-tree based kNN model-based prediction.
Definition: kdtree_knn_classification_predict_types.h:74

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