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

neural_networks_training_result.h
1 /* file: neural_networks_training_result.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 neural network algorithm interface.
21 //--
22 */
23 
24 #ifndef __NEURAL_NETWORKS_TRAINING_RESULT_H__
25 #define __NEURAL_NETWORKS_TRAINING_RESULT_H__
26 
27 #include "algorithms/algorithm.h"
28 
29 #include "data_management/data/data_serialize.h"
30 #include "services/daal_defines.h"
31 #include "algorithms/neural_networks/neural_networks_training_model.h"
32 
33 namespace daal
34 {
35 namespace algorithms
36 {
40 namespace neural_networks
41 {
42 namespace training
43 {
52 enum ResultId
53 {
54  model = 0,
55  lastResultId = model
56 };
57 
61 namespace interface1
62 {
68 class DAAL_EXPORT Result : public daal::algorithms::Result
69 {
70 public:
71  DECLARE_SERIALIZABLE_CAST(Result);
72 
76  Result();
77 
84  training::ModelPtr get(ResultId id) const;
85 
92  DAAL_DEPRECATED void set(ResultId id, const training::ModelPtr &value);
93 
103  template<typename algorithmFPType>
104  DAAL_EXPORT services::Status allocate(const daal::algorithms::Input *input, const daal::algorithms::Parameter *parameter, const int method);
105 
114  DAAL_DEPRECATED services::Status check(const daal::algorithms::Input *input, const daal::algorithms::Parameter *par, int method) const DAAL_C11_OVERRIDE;
115 
116 protected:
121  template<typename Archive, bool onDeserialize>
122  services::Status serialImpl(Archive *arch)
123  {
124  return daal::algorithms::Result::serialImpl<Archive, onDeserialize>(arch);
125  }
126 };
127 typedef services::SharedPtr<Result> ResultPtr;
128 } // namespace interface1
129 using interface1::Result;
130 using interface1::ResultPtr;
131 
132 }
133 }
135 }
136 } // namespace daal
137 #endif
daal::algorithms::neural_networks::training::ResultId
ResultId
Available identifiers of result of the neural network model based training.
Definition: neural_networks_training_result.h:52
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:68
daal::algorithms::math::abs::value
Definition: abs_types.h:88
daal::algorithms::neural_networks::training::model
Definition: neural_networks_training_result.h:54

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