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

linear_model_model.h
1 /* file: linear_model_model.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 class defining the linear regression model
21 //--
22 */
23 
24 #ifndef __LINEAR_MODEL_MODEL_H__
25 #define __LINEAR_MODEL_MODEL_H__
26 
27 #include "algorithms/algorithm_types.h"
28 #include "algorithms/regression/regression_model.h"
29 #include "data_management/data/numeric_table.h"
30 
31 namespace daal
32 {
33 namespace algorithms
34 {
43 namespace linear_model
44 {
48 namespace interface1
49 {
60 /* [Parameter source code] */
61 struct DAAL_EXPORT Parameter : public daal::algorithms::Parameter
62 {
63  Parameter();
64  Parameter(const Parameter &other);
65  bool interceptFlag;
66 };
67 /* [Parameter source code] */
68 
77 class DAAL_EXPORT Model : public regression::Model
78 {
79 public:
80  DAAL_CAST_OPERATOR(Model)
81 
82  virtual ~Model()
83  {}
84 
88  virtual services::Status initialize() = 0;
89 
94  virtual size_t getNumberOfBetas() const = 0;
95 
100  virtual size_t getNumberOfResponses() const = 0;
101 
106  virtual bool getInterceptFlag() const = 0;
107 
112  virtual data_management::NumericTablePtr getBeta() = 0;
113 };
114 
115 typedef services::SharedPtr<Model> ModelPtr;
116 typedef services::SharedPtr<const Model> ModelConstPtr;
118 }
119 using interface1::Parameter;
120 using interface1::Model;
121 using interface1::ModelPtr;
122 using interface1::ModelConstPtr;
123 
133 DAAL_EXPORT services::Status checkModel(
134  linear_model::Model *model, const daal::algorithms::Parameter &par, size_t nBeta, size_t nResponses);
135 
136 }
137 }
138 }
139 #endif
daal::algorithms::linear_model::checkModel
DAAL_EXPORT services::Status checkModel(linear_model::Model *model, const daal::algorithms::Parameter &par, size_t nBeta, size_t nResponses)
daal::algorithms::linear_model::interface1::Parameter
Parameters for the regression algorithm.
Definition: linear_model_model.h:61
daal::algorithms::elastic_net::training::model
Definition: elastic_net_training_types.h:109
daal::algorithms::linear_model::interface1::Model
Base class for models trained with the regression algorithm
Definition: linear_model_model.h:77
daal::algorithms::linear_model::interface1::Parameter::interceptFlag
bool interceptFlag
Definition: linear_model_model.h:65

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