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

svm_train_types.h
1 /* file: svm_train_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 // SVM parameter structure
19 //--
20 */
21 
22 #ifndef __SVM_TRAIN_TYPES_H__
23 #define __SVM_TRAIN_TYPES_H__
24 
25 #include "algorithms/algorithm.h"
26 #include "algorithms/kernel_function/kernel_function.h"
27 #include "algorithms/svm/svm_model.h"
28 #include "algorithms/classifier/classifier_training_types.h"
29 
30 namespace daal
31 {
32 namespace algorithms
33 {
34 namespace svm
35 {
45 namespace training
46 {
51 enum Method
52 {
53  boser = 0,
54  defaultDense = 0
55 };
56 
60 namespace interface1
61 {
67 class DAAL_EXPORT Result : public classifier::training::Result
68 {
69 public:
70  DECLARE_SERIALIZABLE_CAST(Result);
71  Result();
72 
73  virtual ~Result() {}
74 
80  daal::algorithms::svm::ModelPtr get(classifier::training::ResultId id) const;
81 
90  template <typename algorithmFPType>
91  DAAL_EXPORT services::Status allocate(const daal::algorithms::Input *input, const daal::algorithms::Parameter *parameter, const int method);
92 
93  services::Status check(const daal::algorithms::Input *input, const daal::algorithms::Parameter *parameter, int method) const DAAL_C11_OVERRIDE;
94 
95 protected:
97  template<typename Archive, bool onDeserialize>
98  services::Status serialImpl(Archive *arch)
99  {
100  return daal::algorithms::Result::serialImpl<Archive, onDeserialize>(arch);
101  }
102 };
103 typedef services::SharedPtr<Result> ResultPtr;
104 
105 } // namespace interface1
106 using interface1::Result;
107 using interface1::ResultPtr;
108 
109 } // namespace training
111 } // namespace svm
112 } // namespace algorithms
113 } // namespace daal
114 #endif
daal::algorithms::svm::training::interface1::Result
Provides methods to access final results obtained with the compute() method of the SVM training algor...
Definition: svm_train_types.h:67
daal
Definition: algorithm_base_common.h:31
daal::algorithms::svm::training::boser
Definition: svm_train_types.h:53
daal::algorithms::classifier::training::ResultId
ResultId
Definition: classifier_training_types.h:80
daal::algorithms::svm::training::defaultDense
Definition: svm_train_types.h:54
daal::algorithms::svm::training::Method
Method
Definition: svm_train_types.h:51

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