48 #ifndef __NEURAL_NETWORKS_PREDICTION_RESULT_H__ 49 #define __NEURAL_NETWORKS_PREDICTION_RESULT_H__ 51 #include "algorithms/algorithm.h" 53 #include "data_management/data/data_serialize.h" 54 #include "services/daal_defines.h" 55 #include "services/collection.h" 56 #include "neural_networks_prediction_input.h" 65 namespace neural_networks
80 lastResultId = prediction
87 enum ResultCollectionId
89 predictionCollection = lastResultId + 1,
90 lastResultCollectionId = predictionCollection
102 class DAAL_EXPORT Result :
public daal::algorithms::Result
105 DECLARE_SERIALIZABLE_CAST(Result);
114 data_management::TensorPtr
get(ResultId id)
const;
121 data_management::KeyValueDataCollectionPtr
get(ResultCollectionId id)
const;
129 data_management::TensorPtr
get(ResultCollectionId id,
size_t key)
const;
136 void set(ResultId id,
const data_management::TensorPtr &value);
143 void set(ResultCollectionId id,
const data_management::KeyValueDataCollectionPtr &value);
151 void add(ResultCollectionId
id,
size_t key,
const data_management::TensorPtr &value);
161 template<
typename algorithmFPType>
162 DAAL_EXPORT services::Status allocate(
const daal::algorithms::Input *input,
const daal::algorithms::Parameter *parameter,
const int method);
172 services::Status check(
const daal::algorithms::Input *input,
const daal::algorithms::Parameter *par,
int method)
const DAAL_C11_OVERRIDE;
176 template<
typename Archive,
bool onDeserialize>
177 services::Status serialImpl(Archive *arch)
179 return daal::algorithms::Result::serialImpl<Archive, onDeserialize>(arch);
182 typedef services::SharedPtr<Result> ResultPtr;
184 using interface1::Result;
185 using interface1::ResultPtr;
daal::algorithms::neural_networks::prediction::ResultId
ResultId
Definition: neural_networks_prediction_result.h:77
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::interface1::Result
Base class to represent final results of the computation. Algorithm-specific final results are repres...
Definition: algorithm_types.h:331
daal::algorithms::neural_networks::prediction::prediction
Definition: neural_networks_prediction_result.h:79
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:102
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::prediction::ResultCollectionId
ResultCollectionId
Definition: neural_networks_prediction_result.h:87
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::neural_networks::prediction::predictionCollection
Definition: neural_networks_prediction_result.h:89
daal::algorithms::math::abs::value
Definition: abs_types.h:112