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

kdtree_knn_classification_predict_types.h
1 /* file: kdtree_knn_classification_predict_types.h */
2 /*******************************************************************************
3 * Copyright 2014-2018 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 // Implementation of the K-Nearest Neighbors (kNN) algorithm interface
19 //--
20 */
21 
22 #ifndef __KDTREE_KNN_CLASSIFICATION_PREDICT_TYPES_H__
23 #define __KDTREE_KNN_CLASSIFICATION_PREDICT_TYPES_H__
24 
25 #include "algorithms/algorithm.h"
26 #include "data_management/data/data_serialize.h"
27 #include "algorithms/k_nearest_neighbors/kdtree_knn_classification_model.h"
28 #include "algorithms/classifier/classifier_predict_types.h"
29 
30 namespace daal
31 {
32 namespace algorithms
33 {
34 
38 namespace kdtree_knn_classification
39 {
40 
50 namespace prediction
51 {
52 
57 enum Method
58 {
59  defaultDense = 0
60 };
61 
65 namespace interface1
66 {
67 
72 class DAAL_EXPORT Input : public classifier::prediction::Input
73 {
74  typedef classifier::prediction::Input super;
75 public:
77  Input();
78 
79  using super::get;
80  using super::set;
81 
87  kdtree_knn_classification::ModelPtr get(classifier::prediction::ModelInputId id) const;
88 
94  void set(classifier::prediction::NumericTableInputId id, const data_management::NumericTablePtr &ptr);
95 
101  void set(classifier::prediction::ModelInputId id, const kdtree_knn_classification::interface1::ModelPtr & value);
102 
108  services::Status check(const daal::algorithms::Parameter *parameter, int method) const DAAL_C11_OVERRIDE;
109 };
110 
111 } // namespace interface1
112 
113 using interface1::Input;
114 
115 } // namespace prediction
117 } // namespace kdtree_knn_classification
118 } // namespace algorithms
119 } // namespace daal
120 
121 #endif
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::kdtree_knn_classification::prediction::Method
Method
Available methods for making KD-tree based kNN model-based prediction.
Definition: kdtree_knn_classification_predict_types.h:57
daal::algorithms::kdtree_knn_classification::prediction::defaultDense
Definition: kdtree_knn_classification_predict_types.h:59
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:72
daal::algorithms::classifier::prediction::prediction
Definition: classifier_predict_types.h:76
daal::algorithms::math::abs::value
Definition: abs_types.h:86

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