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

multi_class_classifier_train_types.h
1 /* file: multi_class_classifier_train_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 // Multiclass classifier data types
21 //--
22 */
23 
24 #ifndef __MULTI_CLASS_CLASSIFIER_TRAIN_TYPES_H__
25 #define __MULTI_CLASS_CLASSIFIER_TRAIN_TYPES_H__
26 
27 #include "algorithms/algorithm.h"
28 #include "algorithms/multi_class_classifier/multi_class_classifier_model.h"
29 #include "algorithms/classifier/classifier_training_types.h"
30 
31 namespace daal
32 {
33 namespace algorithms
34 {
35 namespace multi_class_classifier
36 {
43 namespace training
44 {
49 enum Method
50 {
51  oneAgainstOne = 0
52 };
53 
57 namespace interface1
58 {
65 class DAAL_EXPORT Result : public classifier::training::Result
66 {
67 public:
68  DECLARE_SERIALIZABLE_CAST(Result);
69  Result();
70 
71  virtual ~Result() {}
72 
78  daal::algorithms::multi_class_classifier::ModelPtr get(classifier::training::ResultId id) const;
79 
88  template <typename algorithmFPType>
89  DAAL_EXPORT services::Status allocate(const daal::algorithms::Input *input, const daal::algorithms::Parameter *parameter, const int method);
90 
99  services::Status check(const daal::algorithms::Input *input, const daal::algorithms::Parameter *parameter, int method) const DAAL_C11_OVERRIDE;
100 
101 protected:
103  template<typename Archive, bool onDeserialize>
104  services::Status serialImpl(Archive *arch)
105  {
106  return daal::algorithms::Result::serialImpl<Archive, onDeserialize>(arch);
107  }
108 };
109 typedef services::SharedPtr<Result> ResultPtr;
110 } // namespace interface1
111 using interface1::Result;
112 using interface1::ResultPtr;
113 
114 } // namespace training
116 } // namespace multi_class_classifier
117 } // namespace algorithms
118 } // namespace daal
119 #endif
daal::algorithms::multi_class_classifier::training::oneAgainstOne
Definition: multi_class_classifier_train_types.h:51
daal::algorithms::multi_class_classifier::training::Method
Method
Definition: multi_class_classifier_train_types.h:49
daal::algorithms::multi_class_classifier::training::interface1::Result
Provides methods to access final results obtained with the compute() method for the multi-class class...
Definition: multi_class_classifier_train_types.h:65
daal::algorithms::classifier::training::ResultId
ResultId
Definition: classifier_training_types.h:82

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