24 #ifndef __NEURAL_NETWORKS_TRAINING_PARTIAL_RESULT_H__
25 #define __NEURAL_NETWORKS_TRAINING_PARTIAL_RESULT_H__
27 #include "algorithms/algorithm.h"
29 #include "services/daal_defines.h"
30 #include "data_management/data/data_serialize.h"
31 #include "data_management/data/numeric_table.h"
32 #include "algorithms/neural_networks/neural_networks_training_model.h"
33 #include "algorithms/neural_networks/neural_networks_training_result.h"
42 namespace neural_networks
55 enum Step1LocalPartialResultId
59 lastStep1LocalPartialResultId = batchSize
67 enum Step2MasterPartialResultId
70 lastStep2MasterPartialResultId = resultFromMaster
84 class DAAL_EXPORT PartialResult :
public daal::algorithms::PartialResult
87 DECLARE_SERIALIZABLE_CAST(PartialResult);
97 virtual ~PartialResult() {}
105 data_management::NumericTablePtr DAAL_DEPRECATED
get(Step1LocalPartialResultId id)
const;
113 void DAAL_DEPRECATED set(Step1LocalPartialResultId
id,
const data_management::NumericTablePtr &value);
124 template<
typename algorithmFPType>
125 DAAL_EXPORT services::Status allocate(
const daal::algorithms::Input *input,
const daal::algorithms::Parameter *parameter,
const int method);
136 services::Status DAAL_DEPRECATED check(
const daal::algorithms::Input *input,
const daal::algorithms::Parameter *par,
int method)
const DAAL_C11_OVERRIDE;
143 template<
typename Archive,
bool onDeserialize>
144 services::Status serialImpl(Archive *arch)
146 return daal::algorithms::PartialResult::serialImpl<Archive, onDeserialize>(arch);
156 class DAAL_EXPORT DistributedPartialResult :
public daal::algorithms::PartialResult
159 DECLARE_SERIALIZABLE_CAST(DistributedPartialResult);
164 DistributedPartialResult();
172 training::ResultPtr
get(Step2MasterPartialResultId id)
const;
180 DAAL_DEPRECATED
void set(Step2MasterPartialResultId
id,
const training::ResultPtr &value);
191 template<
typename algorithmFPType>
192 DAAL_EXPORT services::Status allocate(
const daal::algorithms::Input *input,
const daal::algorithms::Parameter *parameter,
const int method);
203 DAAL_DEPRECATED services::Status check(
const daal::algorithms::Input *input,
const daal::algorithms::Parameter *par,
int method)
const DAAL_C11_OVERRIDE;
210 template<
typename Archive,
bool onDeserialize>
211 services::Status serialImpl(Archive *arch)
213 return daal::algorithms::PartialResult::serialImpl<Archive, onDeserialize>(arch);
217 typedef services::SharedPtr<PartialResult> PartialResultPtr;
218 typedef services::SharedPtr<DistributedPartialResult> DistributedPartialResultPtr;
221 using interface1::PartialResult;
222 using interface1::PartialResultPtr;
223 using interface1::DistributedPartialResult;
224 using interface1::DistributedPartialResultPtr;
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:55
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:67
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:84
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:156
daal::algorithms::math::abs::value
Definition: abs_types.h:88