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

linear_model_predict.h
1 /* file: linear_model_predict.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 interface for the regression model-based prediction
21 //--
22 */
23 
24 #ifndef __LINEAR_MODEL_PREDICT_H__
25 #define __LINEAR_MODEL_PREDICT_H__
26 
27 #include "algorithms/linear_model/linear_model_predict_types.h"
28 #include "algorithms/regression/regression_predict.h"
29 
30 namespace daal
31 {
32 namespace algorithms
33 {
34 namespace linear_model
35 {
36 namespace prediction
37 {
38 namespace interface1
39 {
49 template<typename algorithmFPType, Method method, CpuType cpu>
50 class BatchContainer : public PredictionContainerIface
51 {
52 public:
57  BatchContainer(daal::services::Environment::env *daalEnv);
58  ~BatchContainer();
64  services::Status compute() DAAL_C11_OVERRIDE;
65 };
66 
82 template<typename algorithmFPType = DAAL_ALGORITHM_FP_TYPE, Method method = defaultDense>
83 class Batch : public regression::prediction::Batch
84 {
85 public:
86  typedef algorithms::linear_model::prediction::Input InputType;
87  typedef algorithms::linear_model::Parameter ParameterType;
88  typedef algorithms::linear_model::prediction::Result ResultType;
89 
94  virtual int getMethod() const DAAL_C11_OVERRIDE { return(int)method; }
95 
100  ResultPtr getResult() { return ResultType::cast(_result); }
101 };
103 }
104 using interface1::Batch;
105 using interface1::BatchContainer;
106 }
107 }
108 }
109 }
110 #endif
daal::algorithms::linear_model::prediction::interface1::Batch::getResult
ResultPtr getResult()
Definition: linear_model_predict.h:100
daal::algorithms::linear_model::prediction::interface1::Batch
Provides methods to run implementations of the regression model-based prediction. ...
Definition: linear_model_predict.h:83
daal::algorithms::neural_networks::prediction::prediction
Definition: neural_networks_prediction_result.h:55
daal::algorithms::linear_model::prediction::interface1::BatchContainer::compute
services::Status compute() DAAL_C11_OVERRIDE
daal::algorithms::linear_model::prediction::interface1::BatchContainer
Class containing computation methods for the regression model-based prediction.
Definition: linear_model_predict.h:50
daal::algorithms::PredictionContainerIface
Abstract interface class that provides virtual methods to access and run implementations of the algor...
Definition: prediction.h:42
daal::algorithms::linear_model::prediction::interface1::BatchContainer::BatchContainer
BatchContainer(daal::services::Environment::env *daalEnv)
daal::algorithms::linear_model::prediction::interface1::Batch::getMethod
virtual int getMethod() const DAAL_C11_OVERRIDE
Definition: linear_model_predict.h:94

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