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

multi_class_classifier_train_types.h
1 /* file: multi_class_classifier_train_types.h */
2 /*******************************************************************************
3 * Copyright 2014-2019 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 // Multiclass classifier data types
19 //--
20 */
21 
22 #ifndef __MULTI_CLASS_CLASSIFIER_TRAIN_TYPES_H__
23 #define __MULTI_CLASS_CLASSIFIER_TRAIN_TYPES_H__
24 
25 #include "algorithms/algorithm.h"
26 #include "algorithms/multi_class_classifier/multi_class_classifier_model.h"
27 #include "algorithms/classifier/classifier_training_types.h"
28 
29 namespace daal
30 {
31 namespace algorithms
32 {
33 namespace multi_class_classifier
34 {
41 namespace training
42 {
47 enum Method
48 {
49  oneAgainstOne = 0
50 };
51 
55 namespace interface1
56 {
63 class DAAL_EXPORT Result : public classifier::training::Result
64 {
65 public:
66  DECLARE_SERIALIZABLE_CAST(Result);
67  Result();
68 
69  virtual ~Result() {}
70 
76  daal::algorithms::multi_class_classifier::ModelPtr get(classifier::training::ResultId id) const;
77 
86  template <typename algorithmFPType>
87  DAAL_EXPORT services::Status allocate(const daal::algorithms::Input *input, const daal::algorithms::Parameter *parameter, const int method);
88 
97  services::Status check(const daal::algorithms::Input *input, const daal::algorithms::Parameter *parameter, int method) const DAAL_C11_OVERRIDE;
98 
99 protected:
101  template<typename Archive, bool onDeserialize>
102  services::Status serialImpl(Archive *arch)
103  {
104  return daal::algorithms::Result::serialImpl<Archive, onDeserialize>(arch);
105  }
106 };
107 typedef services::SharedPtr<Result> ResultPtr;
108 } // namespace interface1
109 using interface1::Result;
110 using interface1::ResultPtr;
111 
112 } // namespace training
114 } // namespace multi_class_classifier
115 } // namespace algorithms
116 } // namespace daal
117 #endif
daal
Definition: algorithm_base_common.h:31
daal::algorithms::multi_class_classifier::training::Method
Method
Definition: multi_class_classifier_train_types.h:47
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:63
daal::algorithms::multi_class_classifier::training::oneAgainstOne
Definition: multi_class_classifier_train_types.h:49
daal::algorithms::classifier::training::ResultId
ResultId
Definition: classifier_training_types.h:80

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