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

linear_model_model.h
1 /* file: linear_model_model.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 // Implementation of the class defining the linear regression model
19 //--
20 */
21 
22 #ifndef __LINEAR_MODEL_MODEL_H__
23 #define __LINEAR_MODEL_MODEL_H__
24 
25 #include "algorithms/algorithm_types.h"
26 #include "algorithms/regression/regression_model.h"
27 #include "data_management/data/numeric_table.h"
28 
29 namespace daal
30 {
31 namespace algorithms
32 {
41 namespace linear_model
42 {
46 namespace interface1
47 {
58 /* [Parameter source code] */
59 struct DAAL_EXPORT Parameter : public daal::algorithms::Parameter
60 {
61  Parameter();
62  Parameter(const Parameter &other);
63  bool interceptFlag;
64 };
65 /* [Parameter source code] */
66 
75 class DAAL_EXPORT Model : public regression::Model
76 {
77 public:
78  DAAL_CAST_OPERATOR(Model)
79 
80  virtual ~Model()
81  {}
82 
86  virtual services::Status initialize() = 0;
87 
92  virtual size_t getNumberOfBetas() const = 0;
93 
98  virtual size_t getNumberOfResponses() const = 0;
99 
104  virtual bool getInterceptFlag() const = 0;
105 
110  virtual data_management::NumericTablePtr getBeta() = 0;
111 };
112 
113 typedef services::SharedPtr<Model> ModelPtr;
114 typedef services::SharedPtr<const Model> ModelConstPtr;
116 }
117 using interface1::Parameter;
118 using interface1::Model;
119 using interface1::ModelPtr;
120 using interface1::ModelConstPtr;
121 
131 DAAL_EXPORT services::Status checkModel(
132  linear_model::Model *model, const daal::algorithms::Parameter &par, size_t nBeta, size_t nResponses);
133 
134 }
135 }
136 }
137 #endif
daal
Definition: algorithm_base_common.h:31
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::classifier::prediction::model
Definition: classifier_predict_types.h:66
daal::algorithms::linear_model::interface1::Parameter
Parameters for the regression algorithm.
Definition: linear_model_model.h:59
daal::algorithms::linear_model::interface1::Model
Base class for models trained with the regression algorithm
Definition: linear_model_model.h:75
daal::algorithms::linear_model::interface1::Parameter::interceptFlag
bool interceptFlag
Definition: linear_model_model.h:63

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