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

regression_training_batch.h
1 /* file: regression_training_batch.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 interface for the regression model-based training
19 // in the batch processing mode
20 //--
21 */
22 
23 #ifndef __REGRESSION_TRAINING_BATCH_H__
24 #define __REGRESSION_TRAINING_BATCH_H__
25 
26 #include "algorithms/regression/regression_training_types.h"
27 
28 namespace daal
29 {
30 namespace algorithms
31 {
32 namespace regression
33 {
34 namespace training
35 {
36 namespace interface1
37 {
51 class DAAL_EXPORT Batch : public Training<batch>
52 {
53 public:
54  typedef algorithms::regression::training::Input InputType;
55  typedef algorithms::regression::training::Result ResultType;
56 
57  virtual ~Batch() {}
62  virtual InputType* getInput() = 0;
63 
70  services::Status setResult(const ResultPtr& res)
71  {
72  DAAL_CHECK(res, services::ErrorNullResult)
73  _result = res;
74  _res = _result.get();
75  return services::Status();
76  }
77 
82  ResultPtr getResult() { return _result; }
83 
84 protected:
85  ResultPtr _result;
86 };
88 }
89 using interface1::Batch;
90 }
91 }
92 }
93 }
94 #endif
daal::algorithms::regression::training::interface1::Batch::getResult
ResultPtr getResult()
Definition: regression_training_batch.h:82
daal::algorithms::regression::training::interface1::Batch::setResult
services::Status setResult(const ResultPtr &res)
Definition: regression_training_batch.h:70
daal
Definition: algorithm_base_common.h:31
daal::algorithms::regression::training::interface1::Batch
Provides methods for the regression model-based training in the batch processing mode.
Definition: regression_training_batch.h:51
daal::services::ErrorNullResult
Definition: error_indexes.h:96
daal::algorithms::Training
Provides methods to train models that depend on the data provided. For example, these methods enable ...
Definition: training.h:60

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