24 #ifndef __NEURAL_NETWORKS_PREDICTION_RESULT_H__
25 #define __NEURAL_NETWORKS_PREDICTION_RESULT_H__
27 #include "algorithms/algorithm.h"
29 #include "data_management/data/data_serialize.h"
30 #include "services/daal_defines.h"
31 #include "services/collection.h"
32 #include "neural_networks_prediction_input.h"
41 namespace neural_networks
56 lastResultId = prediction
63 enum ResultCollectionId
65 predictionCollection = lastResultId + 1,
66 lastResultCollectionId = predictionCollection
79 class DAAL_EXPORT Result :
public daal::algorithms::Result
82 DECLARE_SERIALIZABLE_CAST(Result);
95 DAAL_DEPRECATED data_management::TensorPtr
get(ResultId id)
const;
103 DAAL_DEPRECATED data_management::KeyValueDataCollectionPtr
get(ResultCollectionId id)
const;
112 DAAL_DEPRECATED data_management::TensorPtr
get(ResultCollectionId id,
size_t key)
const;
120 DAAL_DEPRECATED
void set(ResultId
id,
const data_management::TensorPtr &value);
128 DAAL_DEPRECATED
void set(ResultCollectionId
id,
const data_management::KeyValueDataCollectionPtr &value);
137 DAAL_DEPRECATED
void add(ResultCollectionId
id,
size_t key,
const data_management::TensorPtr &value);
148 template<
typename algorithmFPType>
149 DAAL_EXPORT services::Status allocate(
const daal::algorithms::Input *input,
const daal::algorithms::Parameter *parameter,
const int method);
160 DAAL_DEPRECATED services::Status check(
const daal::algorithms::Input *input,
const daal::algorithms::Parameter *par,
int method)
const DAAL_C11_OVERRIDE;
167 template<
typename Archive,
bool onDeserialize>
168 services::Status serialImpl(Archive *arch)
170 return daal::algorithms::Result::serialImpl<Archive, onDeserialize>(arch);
173 typedef services::SharedPtr<Result> ResultPtr;
175 using interface1::Result;
176 using interface1::ResultPtr;
daal::algorithms::neural_networks::prediction::prediction
Definition: neural_networks_prediction_result.h:55
daal::algorithms::neural_networks::prediction::ResultId
ResultId
Definition: neural_networks_prediction_result.h:53
daal::algorithms::neural_networks::prediction::predictionCollection
Definition: neural_networks_prediction_result.h:65
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:79
daal::algorithms::neural_networks::prediction::ResultCollectionId
ResultCollectionId
Definition: neural_networks_prediction_result.h:63
daal::algorithms::math::abs::value
Definition: abs_types.h:88