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

kdtree_knn_classification_training_types.h
1 /* file: kdtree_knn_classification_training_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 Neighbor (kNN) algorithm interface
21 //--
22 */
23 
24 #ifndef __KNN_CLASSIFICATION_TRAINING_TYPES_H__
25 #define __KNN_CLASSIFICATION_TRAINING_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_training_types.h"
31 
32 namespace daal
33 {
34 namespace algorithms
35 {
36 
40 namespace kdtree_knn_classification
41 {
42 
52 namespace training
53 {
54 
59 enum Method
60 {
61  defaultDense = 0
62 };
63 
67 namespace interface1
68 {
69 
74 class DAAL_EXPORT Result : public classifier::training::Result
75 {
76 public:
77  DECLARE_SERIALIZABLE_CAST(Result);
78  Result();
79 
85  daal::algorithms::kdtree_knn_classification::interface1::ModelPtr get(classifier::training::ResultId id) const;
86 
93  template<typename algorithmFPType>
94  DAAL_EXPORT services::Status allocate(const daal::algorithms::Input *input, const Parameter *parameter, int method);
95 
102  template<typename algorithmFPType>
103  DAAL_EXPORT services::Status allocate(const daal::algorithms::Input *input, const kdtree_knn_classification::interface1::Parameter *parameter, int method);
104 
105 protected:
107  template<typename Archive, bool onDeserialize>
108  services::Status serialImpl(Archive *arch)
109  {
110  return classifier::training::Result::serialImpl<Archive, onDeserialize>(arch);
111  }
112 };
113 typedef services::SharedPtr<Result> ResultPtr;
114 } // namespace interface1
115 
116 using interface1::Result;
117 using interface1::ResultPtr;
118 
119 } // namespace training
121 } // namespace kdtree_knn_classification
122 } // namespace algorithms
123 } // namespace daal
124 
125 #endif
daal::algorithms::kdtree_knn_classification::interface1::Parameter
KD-tree based kNN algorithm parameters.
Definition: kdtree_knn_classification_model.h:74
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:59
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:74
daal::algorithms::kdtree_knn_classification::training::defaultDense
Definition: kdtree_knn_classification_training_types.h:61
daal::algorithms::classifier::training::ResultId
ResultId
Definition: classifier_training_types.h:82

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