48 #ifndef __NEURAL_NETWORKS_TRAINING_PARTIAL_RESULT_H__ 49 #define __NEURAL_NETWORKS_TRAINING_PARTIAL_RESULT_H__ 51 #include "algorithms/algorithm.h" 53 #include "services/daal_defines.h" 54 #include "data_management/data/data_serialize.h" 55 #include "data_management/data/numeric_table.h" 56 #include "algorithms/neural_networks/neural_networks_training_model.h" 57 #include "algorithms/neural_networks/neural_networks_training_result.h" 66 namespace neural_networks
79 enum Step1LocalPartialResultId
83 lastStep1LocalPartialResultId = batchSize
91 enum Step2MasterPartialResultId
94 lastStep2MasterPartialResultId = resultFromMaster
107 class DAAL_EXPORT PartialResult :
public daal::algorithms::PartialResult
110 DECLARE_SERIALIZABLE_CAST(PartialResult);
114 virtual ~PartialResult() {}
121 data_management::NumericTablePtr
get(Step1LocalPartialResultId id)
const;
128 void set(Step1LocalPartialResultId id,
const data_management::NumericTablePtr &value);
138 template<
typename algorithmFPType>
139 DAAL_EXPORT services::Status allocate(
const daal::algorithms::Input *input,
const daal::algorithms::Parameter *parameter,
const int method);
149 services::Status check(
const daal::algorithms::Input *input,
const daal::algorithms::Parameter *par,
int method)
const DAAL_C11_OVERRIDE;
153 template<
typename Archive,
bool onDeserialize>
154 services::Status serialImpl(Archive *arch)
156 return daal::algorithms::PartialResult::serialImpl<Archive, onDeserialize>(arch);
165 class DAAL_EXPORT DistributedPartialResult :
public daal::algorithms::PartialResult
168 DECLARE_SERIALIZABLE_CAST(DistributedPartialResult);
170 DistributedPartialResult();
177 training::ResultPtr
get(Step2MasterPartialResultId id)
const;
184 void set(Step2MasterPartialResultId id,
const training::ResultPtr &value);
194 template<
typename algorithmFPType>
195 DAAL_EXPORT services::Status allocate(
const daal::algorithms::Input *input,
const daal::algorithms::Parameter *parameter,
const int method);
205 services::Status check(
const daal::algorithms::Input *input,
const daal::algorithms::Parameter *par,
int method)
const DAAL_C11_OVERRIDE;
209 template<
typename Archive,
bool onDeserialize>
210 services::Status serialImpl(Archive *arch)
212 return daal::algorithms::PartialResult::serialImpl<Archive, onDeserialize>(arch);
216 typedef services::SharedPtr<PartialResult> PartialResultPtr;
217 typedef services::SharedPtr<DistributedPartialResult> DistributedPartialResultPtr;
220 using interface1::PartialResult;
221 using interface1::PartialResultPtr;
222 using interface1::DistributedPartialResult;
223 using interface1::DistributedPartialResultPtr;
daal::services::interface1::Status
Class that holds the results of API calls. In case of API routine failure it contains the list of err...
Definition: error_handling.h:491
daal
Definition: algorithm_base_common.h:57
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:91
daal::algorithms::interface1::PartialResult
Base class to represent partial results of the computation. Algorithm-specific partial results are re...
Definition: algorithm_types.h:253
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:79
daal::algorithms::interface1::Parameter
Base class to represent computation parameters. Algorithm-specific parameters are represented as deri...
Definition: algorithm_types.h:86
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:165
daal::services::interface1::SharedPtr
Shared pointer that retains shared ownership of an object through a pointer. Several SharedPtr object...
Definition: daal_shared_ptr.h:187
daal::algorithms::math::abs::value
Definition: abs_types.h:112
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:107