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

neural_networks_training_result.h
1 /* file: neural_networks_training_result.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 neural network algorithm interface.
19 //--
20 */
21 
22 #ifndef __NEURAL_NETWORKS_TRAINING_RESULT_H__
23 #define __NEURAL_NETWORKS_TRAINING_RESULT_H__
24 
25 #include "algorithms/algorithm.h"
26 
27 #include "data_management/data/data_serialize.h"
28 #include "services/daal_defines.h"
29 #include "algorithms/neural_networks/neural_networks_training_model.h"
30 
31 namespace daal
32 {
33 namespace algorithms
34 {
38 namespace neural_networks
39 {
40 namespace training
41 {
50 enum ResultId
51 {
52  model = 0,
53  lastResultId = model
54 };
55 
59 namespace interface1
60 {
65 class DAAL_EXPORT Result : public daal::algorithms::Result
66 {
67 public:
68  DECLARE_SERIALIZABLE_CAST(Result);
69 
70  Result();
71 
77  training::ModelPtr get(ResultId id) const;
78 
84  void set(ResultId id, const training::ModelPtr &value);
85 
94  template<typename algorithmFPType>
95  DAAL_EXPORT services::Status allocate(const daal::algorithms::Input *input, const daal::algorithms::Parameter *parameter, const int method);
96 
105  services::Status check(const daal::algorithms::Input *input, const daal::algorithms::Parameter *par, int method) const DAAL_C11_OVERRIDE;
106 
107 protected:
109  template<typename Archive, bool onDeserialize>
110  services::Status serialImpl(Archive *arch)
111  {
112  return daal::algorithms::Result::serialImpl<Archive, onDeserialize>(arch);
113  }
114 };
115 typedef services::SharedPtr<Result> ResultPtr;
116 } // namespace interface1
117 using interface1::Result;
118 using interface1::ResultPtr;
119 
120 }
121 }
123 }
124 } // namespace daal
125 #endif
daal
Definition: algorithm_base_common.h:31
daal_defines.h
daal::algorithms::neural_networks::training::interface1::Result
Provides methods to access result obtained with the compute() method of the neural network training a...
Definition: neural_networks_training_result.h:65
daal::algorithms::neural_networks::training::ResultId
ResultId
Available identifiers of result of the neural network model based training.
Definition: neural_networks_training_result.h:50
daal::algorithms::math::abs::value
Definition: abs_types.h:86
daal::algorithms::neural_networks::training::model
Definition: neural_networks_training_result.h:52

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