22 #ifndef __NEURAL_NETWORKS_PREDICTION_RESULT_H__
23 #define __NEURAL_NETWORKS_PREDICTION_RESULT_H__
25 #include "algorithms/algorithm.h"
27 #include "data_management/data/data_serialize.h"
28 #include "services/daal_defines.h"
29 #include "services/collection.h"
30 #include "neural_networks_prediction_input.h"
39 namespace neural_networks
54 lastResultId = prediction
61 enum ResultCollectionId
63 predictionCollection = lastResultId + 1,
64 lastResultCollectionId = predictionCollection
76 class DAAL_EXPORT Result :
public daal::algorithms::Result
79 DECLARE_SERIALIZABLE_CAST(Result);
88 data_management::TensorPtr
get(ResultId id)
const;
95 data_management::KeyValueDataCollectionPtr
get(ResultCollectionId id)
const;
103 data_management::TensorPtr
get(ResultCollectionId id,
size_t key)
const;
110 void set(ResultId
id,
const data_management::TensorPtr &value);
117 void set(ResultCollectionId
id,
const data_management::KeyValueDataCollectionPtr &value);
125 void add(ResultCollectionId
id,
size_t key,
const data_management::TensorPtr &value);
135 template<
typename algorithmFPType>
136 DAAL_EXPORT services::Status allocate(
const daal::algorithms::Input *input,
const daal::algorithms::Parameter *parameter,
const int method);
146 services::Status check(
const daal::algorithms::Input *input,
const daal::algorithms::Parameter *par,
int method)
const DAAL_C11_OVERRIDE;
150 template<
typename Archive,
bool onDeserialize>
151 services::Status serialImpl(Archive *arch)
153 return daal::algorithms::Result::serialImpl<Archive, onDeserialize>(arch);
156 typedef services::SharedPtr<Result> ResultPtr;
158 using interface1::Result;
159 using interface1::ResultPtr;
daal::algorithms::neural_networks::prediction::ResultId
ResultId
Definition: neural_networks_prediction_result.h:51
daal
Definition: algorithm_base_common.h:31
daal::algorithms::neural_networks::prediction::prediction
Definition: neural_networks_prediction_result.h:53
daal::algorithms::neural_networks::prediction::interface1::Result
Provides methods to access result obtained with the compute() method of the neural networks predictio...
Definition: neural_networks_prediction_result.h:76
daal::algorithms::neural_networks::prediction::ResultCollectionId
ResultCollectionId
Definition: neural_networks_prediction_result.h:61
daal::algorithms::neural_networks::prediction::predictionCollection
Definition: neural_networks_prediction_result.h:63
daal::algorithms::math::abs::value
Definition: abs_types.h:86