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

logistic_loss_types.h
1 /* file: logistic_loss_types.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 logistic loss objective function
19 //--
20 */
21 
22 #ifndef __LOGISTIC_LOSS_TYPES_H__
23 #define __LOGISTIC_LOSS_TYPES_H__
24 
25 #include "algorithms/algorithm.h"
26 #include "data_management/data/numeric_table.h"
27 #include "services/daal_defines.h"
28 #include "sum_of_functions_types.h"
29 
30 namespace daal
31 {
32 namespace algorithms
33 {
37 namespace optimization_solver
38 {
48 namespace logistic_loss
49 {
50 
55 enum InputId
56 {
57  argument = (int)sum_of_functions::argument,
58  data,
59  dependentVariables,
60  lastInputId = dependentVariables
61 };
62 
67 enum Method
68 {
69  defaultDense = 0
70 };
71 
75 namespace interface1
76 {
77 
84 /* [Parameter source code] */
85 struct DAAL_EXPORT Parameter : public sum_of_functions::Parameter
86 {
96  Parameter(size_t numberOfTerms,
97  data_management::NumericTablePtr batchIndices = data_management::NumericTablePtr(),
98  const DAAL_UINT64 resultsToCompute = objective_function::gradient);
99 
104  Parameter(const Parameter &other);
110  virtual services::Status check() const;
111 
112  virtual ~Parameter() {}
113 
114  bool interceptFlag;
115  float penaltyL1;
116  float penaltyL2;
117 };
118 /* [Parameter source code] */
119 
124 class DAAL_EXPORT Input : public sum_of_functions::Input
125 {
126 public:
128  Input();
129 
131  Input(const Input& other);
132 
134  virtual ~Input() {}
135 
141  void set(InputId id, const data_management::NumericTablePtr &ptr);
142 
148  data_management::NumericTablePtr get(InputId id) const;
149 
157  services::Status check(const daal::algorithms::Parameter *par, int method) const DAAL_C11_OVERRIDE;
158 };
160 } // namespace interface1
161 using interface1::Parameter;
162 using interface1::Input;
163 
164 } // namespace logistic_loss
165 } // namespace optimization_solver
166 } // namespace algorithm
167 } // namespace daal
168 #endif
daal::algorithms::optimization_solver::logistic_loss::Method
Method
Definition: logistic_loss_types.h:67
daal::algorithms::optimization_solver::logistic_loss::interface1::Parameter::penaltyL2
float penaltyL2
Definition: logistic_loss_types.h:116
daal::algorithms::optimization_solver::logistic_loss::InputId
InputId
Definition: logistic_loss_types.h:55
daal::algorithms::optimization_solver::logistic_loss::defaultDense
Definition: logistic_loss_types.h:69
daal
Definition: algorithm_base_common.h:31
daal::algorithms::optimization_solver::logistic_loss::interface1::Parameter::interceptFlag
bool interceptFlag
Definition: logistic_loss_types.h:114
daal::algorithms::optimization_solver::logistic_loss::interface1::Parameter::penaltyL1
float penaltyL1
Definition: logistic_loss_types.h:115
daal_defines.h
daal::algorithms::optimization_solver::logistic_loss::argument
Definition: logistic_loss_types.h:57
daal::algorithms::optimization_solver::logistic_loss::dependentVariables
Definition: logistic_loss_types.h:59
daal::algorithms::interface1::Parameter
Base class to represent computation parameters. Algorithm-specific parameters are represented as deri...
Definition: algorithm_types.h:60
daal::algorithms::optimization_solver::sum_of_functions::argument
Definition: sum_of_functions_types.h:54
daal::algorithms::optimization_solver::objective_function::gradient
Definition: objective_function_types.h:67
daal::algorithms::optimization_solver::logistic_loss::interface1::Input
Input objects for the Logistic loss objective function
Definition: logistic_loss_types.h:124
daal::algorithms::optimization_solver::logistic_loss::data
Definition: logistic_loss_types.h:58
daal::algorithms::optimization_solver::logistic_loss::interface1::Input::~Input
virtual ~Input()
Definition: logistic_loss_types.h:134
daal::algorithms::interface1::Input
Base class to represent computation input arguments. Algorithm-specific input arguments are represent...
Definition: algorithm_types.h:191
daal::algorithms::optimization_solver::logistic_loss::interface1::Parameter
Parameter for Logistic loss objective function
Definition: logistic_loss_types.h:85

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