24 #ifndef __NEURAL_NETWORKS_TRAINING_INPUT_H__
25 #define __NEURAL_NETWORKS_TRAINING_INPUT_H__
27 #include "algorithms/algorithm.h"
29 #include "data_management/data/tensor.h"
30 #include "data_management/data/data_serialize.h"
31 #include "data_management/data/data_collection.h"
32 #include "services/daal_defines.h"
33 #include "algorithms/neural_networks/neural_networks_training_model.h"
34 #include "algorithms/neural_networks/neural_networks_training_partial_result.h"
43 namespace neural_networks
59 lastInputId = groundTruth
66 enum InputCollectionId
68 groundTruthCollection = lastInputId + 1,
69 lastInputCollectionId = groundTruthCollection
76 enum Step1LocalInputId
78 inputModel = lastInputCollectionId + 1,
79 lastStep1LocalInputId = inputModel
86 enum Step2MasterInputId
90 lastStep2MasterInputId = partialResults
103 class DAAL_EXPORT Input :
public daal::algorithms::Input
109 Input(
size_t nElements = lastInputCollectionId + 1);
113 Input(
const Input& other);
126 DAAL_DEPRECATED data_management::TensorPtr
get(InputId id)
const;
134 DAAL_DEPRECATED data_management::KeyValueDataCollectionPtr
get(InputCollectionId id)
const;
143 DAAL_DEPRECATED data_management::TensorPtr
get(InputCollectionId id,
size_t key)
const;
151 DAAL_DEPRECATED
void set(InputId
id,
const data_management::TensorPtr &value);
159 DAAL_DEPRECATED
void set(InputCollectionId
id,
const data_management::KeyValueDataCollectionPtr &value);
168 DAAL_DEPRECATED
void add(InputCollectionId
id,
size_t key,
const data_management::TensorPtr &value);
178 services::Status check(
const daal::algorithms::Parameter *par,
int method)
const DAAL_C11_OVERRIDE;
184 DAAL_DEPRECATED services::Status checkImpl(
const daal::algorithms::Parameter *par,
int method)
const;
192 template<ComputeStep step>
193 class DAAL_EXPORT DistributedInput
202 class DAAL_EXPORT DistributedInput<step1Local> :
public Input
208 DistributedInput(
size_t nElements = lastStep1LocalInputId + 1);
212 DistributedInput(
const DistributedInput& other);
217 virtual ~DistributedInput() {};
228 DAAL_DEPRECATED ModelPtr
get(Step1LocalInputId id)
const;
236 DAAL_DEPRECATED
void set(Step1LocalInputId
id,
const ModelPtr &value);
246 DAAL_DEPRECATED services::Status check(
const daal::algorithms::Parameter *par,
int method)
const DAAL_C11_OVERRIDE;
255 class DAAL_EXPORT DistributedInput<step2Master> :
public daal::algorithms::Input
265 DistributedInput(
const DistributedInput& other);
267 virtual ~DistributedInput() {};
275 DAAL_DEPRECATED data_management::KeyValueDataCollectionPtr
get(Step2MasterInputId id)
const;
283 DAAL_DEPRECATED
void set(Step2MasterInputId
id,
const data_management::KeyValueDataCollectionPtr &value);
292 DAAL_DEPRECATED
void add(Step2MasterInputId
id,
size_t key,
const PartialResultPtr &value);
302 DAAL_DEPRECATED services::Status check(
const daal::algorithms::Parameter *par,
int method)
const DAAL_C11_OVERRIDE;
306 using interface1::Input;
307 using interface1::DistributedInput;
daal::algorithms::neural_networks::training::Step2MasterInputId
Step2MasterInputId
Partial results from the previous steps in the distributed processing mode required by the second dis...
Definition: neural_networks_training_input.h:86
daal::step1Local
Definition: daal_defines.h:123
daal::algorithms::neural_networks::training::interface1::DistributedInput
Input objects of the neural network training algorithm in the distributed processing mode...
Definition: neural_networks_training_input.h:193
daal::algorithms::neural_networks::training::data
Definition: neural_networks_training_input.h:57
daal::algorithms::neural_networks::training::interface1::Input
Input objects of the neural network training algorithm.
Definition: neural_networks_training_input.h:103
daal::step2Master
Definition: daal_defines.h:124
daal::algorithms::neural_networks::training::interface1::Input::get
DAAL_DEPRECATED data_management::TensorPtr get(InputId id) const
daal::algorithms::neural_networks::training::InputCollectionId
InputCollectionId
Available identifiers of input collection objects for the neural network model based training...
Definition: neural_networks_training_input.h:66
daal::algorithms::neural_networks::training::groundTruth
Definition: neural_networks_training_input.h:58
daal::algorithms::neural_networks::training::InputId
InputId
Available identifiers of input objects for the neural network model based training.
Definition: neural_networks_training_input.h:55
daal::algorithms::neural_networks::training::interface1::Input::set
DAAL_DEPRECATED void set(InputId id, const data_management::TensorPtr &value)
daal::algorithms::neural_networks::training::partialResults
Definition: neural_networks_training_input.h:88
daal::algorithms::neural_networks::training::groundTruthCollection
Definition: neural_networks_training_input.h:68
daal::algorithms::neural_networks::training::inputModel
Definition: neural_networks_training_input.h:78
daal::algorithms::math::abs::value
Definition: abs_types.h:88
daal::algorithms::neural_networks::training::Step1LocalInputId
Step1LocalInputId
Available identifiers of input objects for the neural network model based training.
Definition: neural_networks_training_input.h:76