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

ridge_regression_predict_types.h
1 /* file: ridge_regression_predict_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 ridge regression algorithm interface
21 //--
22 */
23 
24 #ifndef __RIDGE_REGRESSION_PREDICT_TYPES_H__
25 #define __RIDGE_REGRESSION_PREDICT_TYPES_H__
26 
27 #include "algorithms/algorithm.h"
28 #include "data_management/data/numeric_table.h"
29 #include "algorithms/ridge_regression/ridge_regression_model.h"
30 #include "algorithms/linear_model/linear_model_predict_types.h"
31 
32 namespace daal
33 {
34 namespace algorithms
35 {
39 namespace ridge_regression
40 {
50 namespace prediction
51 {
56 enum Method
57 {
58  defaultDense = 0
59 };
60 
65 enum NumericTableInputId
66 {
67  data = linear_model::prediction::data,
68  lastNumericTableInputId = data
69 };
70 
75 enum ModelInputId
76 {
77  model = linear_model::prediction::model,
78  lastModelInputId = model
79 };
80 
85 enum ResultId
86 {
87  prediction = linear_model::prediction::prediction,
88  lastResultId = prediction
89 };
90 
94 namespace interface1
95 {
100 class DAAL_EXPORT Input : public linear_model::prediction::Input
101 {
102 public:
104  Input();
105 
107  Input(const Input& other);
108 
114  data_management::NumericTablePtr get(NumericTableInputId id) const;
115 
121  ridge_regression::ModelPtr get(ModelInputId id) const;
122 
128  void set(NumericTableInputId id, const data_management::NumericTablePtr &value);
129 
135  void set(ModelInputId id, const ridge_regression::ModelPtr &value);
136 };
137 
142 class DAAL_EXPORT Result : public linear_model::prediction::Result
143 {
144 public:
145  DECLARE_SERIALIZABLE_CAST(Result);
146  Result();
147 
153  data_management::NumericTablePtr get(ResultId id) const;
154 
160  void set(ResultId id, const data_management::NumericTablePtr &value);
161 
162 protected:
164  template<typename Archive, bool onDeserialize>
165  services::Status serialImpl(Archive *arch)
166  {
167  return daal::algorithms::Result::serialImpl<Archive, onDeserialize>(arch);
168  }
169 };
170 typedef services::SharedPtr<Result> ResultPtr;
171 typedef services::SharedPtr<const Result> ResultConstPtr;
172 } // namespace interface1
173 using interface1::Input;
174 using interface1::Result;
175 using interface1::ResultPtr;
176 using interface1::ResultConstPtr;
177 } // namespace prediction
179 } // namespace ridge_regression
180 } // namespace algorithms
181 } // namespace daal
182 
183 #endif
daal::algorithms::linear_model::prediction::data
Definition: linear_model_predict_types.h:64
daal::algorithms::linear_model::prediction::prediction
Definition: linear_model_predict_types.h:84
daal::algorithms::ridge_regression::prediction::model
Definition: ridge_regression_predict_types.h:77
daal::algorithms::neural_networks::prediction::prediction
Definition: neural_networks_prediction_result.h:55
daal::algorithms::linear_model::prediction::model
Definition: linear_model_predict_types.h:74
daal::algorithms::ridge_regression::prediction::Method
Method
Available methods for making ridge regression model-based prediction.
Definition: ridge_regression_predict_types.h:56
daal::algorithms::ridge_regression::prediction::interface1::Input
Provides an interface for input objects for making ridge regression model-based prediction.
Definition: ridge_regression_predict_types.h:100
daal::algorithms::ridge_regression::prediction::ModelInputId
ModelInputId
Available identifiers of input models for making ridge regression model-based prediction.
Definition: ridge_regression_predict_types.h:75
daal::algorithms::ridge_regression::prediction::ResultId
ResultId
Available identifiers of the result for making ridge regression model-based prediction.
Definition: ridge_regression_predict_types.h:85
daal::algorithms::math::abs::value
Definition: abs_types.h:88
daal::algorithms::ridge_regression::prediction::interface1::Result
Provides interface for the result of ridge regression model-based prediction.
Definition: ridge_regression_predict_types.h:142
daal::algorithms::ridge_regression::prediction::data
Definition: ridge_regression_predict_types.h:67
daal::algorithms::ridge_regression::prediction::prediction
Definition: ridge_regression_predict_types.h:87
daal::algorithms::ridge_regression::prediction::NumericTableInputId
NumericTableInputId
Available identifiers of input numeric tables for making ridge regression model-based prediction...
Definition: ridge_regression_predict_types.h:65

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