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

svm_train_types.h
1 /* file: svm_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 // SVM parameter structure
21 //--
22 */
23 
24 #ifndef __SVM_TRAIN_TYPES_H__
25 #define __SVM_TRAIN_TYPES_H__
26 
27 #include "algorithms/algorithm.h"
28 #include "algorithms/kernel_function/kernel_function.h"
29 #include "algorithms/svm/svm_model.h"
30 #include "algorithms/classifier/classifier_training_types.h"
31 
32 namespace daal
33 {
34 namespace algorithms
35 {
36 namespace svm
37 {
47 namespace training
48 {
53 enum Method
54 {
55  boser = 0,
56  defaultDense = 0
57 };
58 
62 namespace interface1
63 {
69 class DAAL_EXPORT Result : public classifier::training::Result
70 {
71 public:
72  DECLARE_SERIALIZABLE_CAST(Result);
73  Result();
74 
75  virtual ~Result() {}
76 
82  daal::algorithms::svm::ModelPtr get(classifier::training::ResultId id) const;
83 
92  template <typename algorithmFPType>
93  DAAL_EXPORT services::Status allocate(const daal::algorithms::Input *input, const daal::algorithms::Parameter *parameter, const int method);
94 
95  services::Status check(const daal::algorithms::Input *input, const daal::algorithms::Parameter *parameter, int method) const DAAL_C11_OVERRIDE;
96 
97 protected:
99  template<typename Archive, bool onDeserialize>
100  services::Status serialImpl(Archive *arch)
101  {
102  return daal::algorithms::Result::serialImpl<Archive, onDeserialize>(arch);
103  }
104 };
105 typedef services::SharedPtr<Result> ResultPtr;
106 
107 } // namespace interface1
108 using interface1::Result;
109 using interface1::ResultPtr;
110 
111 } // namespace training
113 } // namespace svm
114 } // namespace algorithms
115 } // namespace daal
116 #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:69
daal::algorithms::svm::training::defaultDense
Definition: svm_train_types.h:56
daal::algorithms::svm::training::Method
Method
Definition: svm_train_types.h:53
daal::algorithms::svm::training::boser
Definition: svm_train_types.h:55
daal::algorithms::classifier::training::ResultId
ResultId
Definition: classifier_training_types.h:82

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