22 #ifndef __NEURAL_NETWORKS_TRAINING_PARTIAL_RESULT_H__
23 #define __NEURAL_NETWORKS_TRAINING_PARTIAL_RESULT_H__
25 #include "algorithms/algorithm.h"
27 #include "services/daal_defines.h"
28 #include "data_management/data/data_serialize.h"
29 #include "data_management/data/numeric_table.h"
30 #include "algorithms/neural_networks/neural_networks_training_model.h"
31 #include "algorithms/neural_networks/neural_networks_training_result.h"
40 namespace neural_networks
53 enum Step1LocalPartialResultId
57 lastStep1LocalPartialResultId = batchSize
65 enum Step2MasterPartialResultId
68 lastStep2MasterPartialResultId = resultFromMaster
81 class DAAL_EXPORT PartialResult :
public daal::algorithms::PartialResult
84 DECLARE_SERIALIZABLE_CAST(PartialResult);
88 virtual ~PartialResult() {}
95 data_management::NumericTablePtr
get(Step1LocalPartialResultId id)
const;
102 void set(Step1LocalPartialResultId
id,
const data_management::NumericTablePtr &value);
112 template<
typename algorithmFPType>
113 DAAL_EXPORT services::Status allocate(
const daal::algorithms::Input *input,
const daal::algorithms::Parameter *parameter,
const int method);
123 services::Status check(
const daal::algorithms::Input *input,
const daal::algorithms::Parameter *par,
int method)
const DAAL_C11_OVERRIDE;
127 template<
typename Archive,
bool onDeserialize>
128 services::Status serialImpl(Archive *arch)
130 return daal::algorithms::PartialResult::serialImpl<Archive, onDeserialize>(arch);
139 class DAAL_EXPORT DistributedPartialResult :
public daal::algorithms::PartialResult
142 DECLARE_SERIALIZABLE_CAST(DistributedPartialResult);
144 DistributedPartialResult();
151 training::ResultPtr
get(Step2MasterPartialResultId id)
const;
158 void set(Step2MasterPartialResultId
id,
const training::ResultPtr &value);
168 template<
typename algorithmFPType>
169 DAAL_EXPORT services::Status allocate(
const daal::algorithms::Input *input,
const daal::algorithms::Parameter *parameter,
const int method);
179 services::Status check(
const daal::algorithms::Input *input,
const daal::algorithms::Parameter *par,
int method)
const DAAL_C11_OVERRIDE;
183 template<
typename Archive,
bool onDeserialize>
184 services::Status serialImpl(Archive *arch)
186 return daal::algorithms::PartialResult::serialImpl<Archive, onDeserialize>(arch);
190 typedef services::SharedPtr<PartialResult> PartialResultPtr;
191 typedef services::SharedPtr<DistributedPartialResult> DistributedPartialResultPtr;
194 using interface1::PartialResult;
195 using interface1::PartialResultPtr;
196 using interface1::DistributedPartialResult;
197 using interface1::DistributedPartialResultPtr;
daal
Definition: algorithm_base_common.h:31
daal::algorithms::neural_networks::training::Step2MasterPartialResultId
Step2MasterPartialResultId
Available identifiers of partial results of the neural network training algorithm equired by the seco...
Definition: neural_networks_training_partial_result.h:65
daal::algorithms::neural_networks::training::Step1LocalPartialResultId
Step1LocalPartialResultId
Available identifiers of partial results of the neural network training algorithm required by the fir...
Definition: neural_networks_training_partial_result.h:53
daal::algorithms::neural_networks::training::interface1::DistributedPartialResult
Provides methods to access partial result obtained with the compute() method of the neural network tr...
Definition: neural_networks_training_partial_result.h:139
daal::algorithms::math::abs::value
Definition: abs_types.h:86
daal::algorithms::neural_networks::training::interface1::PartialResult
Provides methods to access partial result obtained with the compute() method of the neural network tr...
Definition: neural_networks_training_partial_result.h:81