25 #ifndef __CLASSIFIER_PREDICT_TYPES_H__
26 #define __CLASSIFIER_PREDICT_TYPES_H__
28 #include "algorithms/algorithm.h"
29 #include "algorithms/classifier/classifier_model.h"
31 #include "data_management/data/homogen_numeric_table.h"
55 enum NumericTableInputId
58 lastNumericTableInputId = data
68 model = lastNumericTableInputId + 1,
69 lastModelInputId = model
81 lastResultId = logProbabilities
93 class DAAL_EXPORT InputIface :
public daal::algorithms::Input
96 InputIface(
size_t nElements);
97 InputIface(
const InputIface& other) : daal::algorithms::Input(other){}
99 virtual ~InputIface() {}
104 virtual size_t getNumberOfRows()
const = 0;
111 class DAAL_EXPORT Input :
public InputIface
115 Input(
const Input& other) : InputIface(other){}
122 size_t getNumberOfRows()
const DAAL_C11_OVERRIDE;
129 data_management::NumericTablePtr
get(NumericTableInputId id)
const;
136 classifier::ModelPtr
get(ModelInputId id)
const;
143 void set(NumericTableInputId
id,
const data_management::NumericTablePtr &ptr);
150 void set(ModelInputId
id,
const ModelPtr &ptr);
157 services::Status check(
const daal::algorithms::Parameter *parameter,
int method)
const DAAL_C11_OVERRIDE;
160 services::Status checkImpl(
const daal::algorithms::Parameter *parameter)
const;
168 class DAAL_EXPORT Result :
public daal::algorithms::Result
171 DECLARE_SERIALIZABLE_CAST(Result);
179 DAAL_DEPRECATED data_management::NumericTablePtr
get(ResultId id)
const;
186 DAAL_DEPRECATED
void set(ResultId
id,
const data_management::NumericTablePtr &value);
195 template <
typename algorithmFPType>
196 DAAL_EXPORT DAAL_DEPRECATED 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 *parameter,
206 int method)
const DAAL_C11_OVERRIDE;
210 services::Status checkImpl(
const daal::algorithms::Input *input,
const daal::algorithms::Parameter *parameter)
const;
213 template<
typename Archive,
bool onDeserialize>
214 services::Status serialImpl(Archive *arch)
216 return daal::algorithms::Result::serialImpl<Archive, onDeserialize>(arch);
219 typedef services::SharedPtr<Result> ResultPtr;
232 class DAAL_EXPORT Result :
public daal::algorithms::Result
235 DECLARE_SERIALIZABLE_CAST(Result);
244 data_management::NumericTablePtr
get(ResultId id)
const;
251 void set(ResultId
id,
const data_management::NumericTablePtr &value);
260 template <
typename algorithmFPType>
261 DAAL_EXPORT services::Status allocate(
const daal::algorithms::Input *input,
const daal::algorithms::Parameter *parameter,
const int method);
269 services::Status check(
const daal::algorithms::Input *input,
const daal::algorithms::Parameter *parameter,
270 int method)
const DAAL_C11_OVERRIDE;
273 Result(
const size_t n);
274 services::Status checkImpl(
const daal::algorithms::Input *input,
const daal::algorithms::Parameter *parameter)
const;
277 template<
typename Archive,
bool onDeserialize>
278 services::Status serialImpl(Archive *arch)
280 return daal::algorithms::Result::serialImpl<Archive, onDeserialize>(arch);
283 typedef services::SharedPtr<Result> ResultPtr;
285 using interface1::InputIface;
286 using interface1::Input;
287 using interface2::Result;
288 using interface2::ResultPtr;
daal::algorithms::classifier::prediction::prediction
Definition: classifier_predict_types.h:78
daal::algorithms::classifier::prediction::logProbabilities
Definition: classifier_predict_types.h:80
daal::algorithms::classifier::prediction::probabilities
Definition: classifier_predict_types.h:79
daal::algorithms::neural_networks::prediction::prediction
Definition: neural_networks_prediction_result.h:55
daal::algorithms::classifier::prediction::interface1::Input
Input objects in the prediction stage of the classification algorithm.
Definition: classifier_predict_types.h:111
daal::algorithms::classifier::prediction::NumericTableInputId
NumericTableInputId
Definition: classifier_predict_types.h:55
daal::algorithms::classifier::prediction::ResultId
ResultId
Definition: classifier_predict_types.h:76
daal::algorithms::classifier::prediction::interface1::Result
Provides methods to access prediction results obtained with the compute() method of the classifier pr...
Definition: classifier_predict_types.h:168
daal::algorithms::classifier::prediction::ModelInputId
ModelInputId
Definition: classifier_predict_types.h:66
daal::algorithms::classifier::prediction::interface2::Result
Provides methods to access prediction results obtained with the compute() method of the classifier pr...
Definition: classifier_predict_types.h:232
daal::algorithms::classifier::prediction::interface1::InputIface
Base class for working with input objects in the prediction stage of the classification algorithm...
Definition: classifier_predict_types.h:93
daal::algorithms::classifier::prediction::data
Definition: classifier_predict_types.h:57
daal::algorithms::math::abs::value
Definition: abs_types.h:88
daal::algorithms::classifier::prediction::model
Definition: classifier_predict_types.h:68