C++ API Reference for Intel® Data Analytics Acceleration Library 2018 Update 3

linear_model_predict.h
1 /* file: linear_model_predict.h */
2 /*******************************************************************************
3 * Copyright 2014-2018 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 interface for the regression model-based prediction
19 //--
20 */
21 
22 #ifndef __LINEAR_MODEL_PREDICT_H__
23 #define __LINEAR_MODEL_PREDICT_H__
24 
25 #include "algorithms/linear_model/linear_model_predict_types.h"
26 #include "algorithms/regression/regression_predict.h"
27 
28 namespace daal
29 {
30 namespace algorithms
31 {
32 namespace linear_model
33 {
34 namespace prediction
35 {
36 namespace interface1
37 {
47 template<typename algorithmFPType, Method method, CpuType cpu>
48 class DAAL_EXPORT BatchContainer : public PredictionContainerIface
49 {
50 public:
55  BatchContainer(daal::services::Environment::env *daalEnv);
56  ~BatchContainer();
62  services::Status compute() DAAL_C11_OVERRIDE;
63 };
64 
80 template<typename algorithmFPType = DAAL_ALGORITHM_FP_TYPE, Method method = defaultDense>
81 class Batch : public regression::prediction::Batch
82 {
83 public:
84  typedef algorithms::linear_model::prediction::Input InputType;
85  typedef algorithms::linear_model::Parameter ParameterType;
86  typedef algorithms::linear_model::prediction::Result ResultType;
87 
92  virtual int getMethod() const DAAL_C11_OVERRIDE { return(int)method; }
93 
98  ResultPtr getResult() { return ResultType::cast(_result); }
99 };
101 }
102 using interface1::Batch;
103 using interface1::BatchContainer;
104 }
105 }
106 }
107 }
108 #endif
daal
Definition: algorithm_base_common.h:31
daal::algorithms::linear_model::prediction::interface1::BatchContainer
Class containing computation methods for the regression model-based prediction.
Definition: linear_model_predict.h:48
daal::algorithms::linear_model::prediction::interface1::Batch
Provides methods to run implementations of the regression model-based prediction. ...
Definition: linear_model_predict.h:81
daal::algorithms::PredictionContainerIface
Abstract interface class that provides virtual methods to access and run implementations of the algor...
Definition: prediction.h:40
daal::algorithms::linear_model::prediction::interface1::Batch::getMethod
virtual int getMethod() const DAAL_C11_OVERRIDE
Definition: linear_model_predict.h:92
daal::algorithms::classifier::prediction::prediction
Definition: classifier_predict_types.h:76
daal::algorithms::linear_model::prediction::interface1::Batch::getResult
ResultPtr getResult()
Definition: linear_model_predict.h:98

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