C++ API Reference for Intel® Data Analytics Acceleration Library 2018 Update 3

kdtree_knn_classification_training_types.h
1 /* file: kdtree_knn_classification_training_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 Neighbor (kNN) algorithm interface
19 //--
20 */
21 
22 #ifndef __KNN_CLASSIFICATION_TRAINING_TYPES_H__
23 #define __KNN_CLASSIFICATION_TRAINING_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_training_types.h"
29 
30 namespace daal
31 {
32 namespace algorithms
33 {
34 
38 namespace kdtree_knn_classification
39 {
40 
50 namespace training
51 {
52 
57 enum Method
58 {
59  defaultDense = 0
60 };
61 
65 namespace interface1
66 {
67 
72 class DAAL_EXPORT Result : public classifier::training::Result
73 {
74 public:
75  DECLARE_SERIALIZABLE_CAST(Result);
76  Result();
77 
83  daal::algorithms::kdtree_knn_classification::interface1::ModelPtr get(classifier::training::ResultId id) const;
84 
91  template<typename algorithmFPType>
92  DAAL_EXPORT services::Status allocate(const daal::algorithms::Input *input, const Parameter *parameter, int method);
93 
94 protected:
96  template<typename Archive, bool onDeserialize>
97  services::Status serialImpl(Archive *arch)
98  {
99  return classifier::training::Result::serialImpl<Archive, onDeserialize>(arch);
100  }
101 };
102 typedef services::SharedPtr<Result> ResultPtr;
103 } // namespace interface1
104 
105 using interface1::Result;
106 using interface1::ResultPtr;
107 
108 } // namespace training
110 } // namespace kdtree_knn_classification
111 } // namespace algorithms
112 } // namespace daal
113 
114 #endif
daal
Definition: algorithm_base_common.h:31
daal::algorithms::kdtree_knn_classification::training::Method
Method
Computation methods for KD-tree based kNN model-based training.
Definition: kdtree_knn_classification_training_types.h:57
daal::algorithms::kdtree_knn_classification::training::interface1::Result
Provides methods to access the result obtained with the compute() method of KD-tree based kNN model-b...
Definition: kdtree_knn_classification_training_types.h:72
daal::algorithms::kdtree_knn_classification::training::defaultDense
Definition: kdtree_knn_classification_training_types.h:59
daal::algorithms::classifier::training::ResultId
ResultId
Definition: classifier_training_types.h:80

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