23 #ifndef __CLASSIFIER_PREDICT_TYPES_H__
24 #define __CLASSIFIER_PREDICT_TYPES_H__
26 #include "algorithms/algorithm.h"
27 #include "algorithms/classifier/classifier_model.h"
29 #include "data_management/data/homogen_numeric_table.h"
53 enum NumericTableInputId
56 lastNumericTableInputId = data
66 model = lastNumericTableInputId + 1,
67 lastModelInputId = model
77 lastResultId = prediction
89 class DAAL_EXPORT InputIface :
public daal::algorithms::Input
92 InputIface(
size_t nElements);
93 InputIface(
const InputIface& other) : daal::algorithms::Input(other){}
95 virtual ~InputIface() {}
100 virtual size_t getNumberOfRows()
const = 0;
107 class DAAL_EXPORT Input :
public InputIface
111 Input(
const Input& other) : InputIface(other){}
118 size_t getNumberOfRows()
const DAAL_C11_OVERRIDE;
125 data_management::NumericTablePtr
get(NumericTableInputId id)
const;
132 classifier::ModelPtr
get(ModelInputId id)
const;
139 void set(NumericTableInputId
id,
const data_management::NumericTablePtr &ptr);
146 void set(ModelInputId
id,
const ModelPtr &ptr);
153 services::Status check(
const daal::algorithms::Parameter *parameter,
int method)
const DAAL_C11_OVERRIDE;
156 services::Status checkImpl(
const daal::algorithms::Parameter *parameter)
const;
164 class DAAL_EXPORT Result :
public daal::algorithms::Result
167 DECLARE_SERIALIZABLE_CAST(Result);
175 data_management::NumericTablePtr
get(ResultId id)
const;
182 void set(ResultId
id,
const data_management::NumericTablePtr &value);
191 template <
typename algorithmFPType>
192 DAAL_EXPORT services::Status allocate(
const daal::algorithms::Input *input,
const daal::algorithms::Parameter *parameter,
const int method);
200 services::Status check(
const daal::algorithms::Input *input,
const daal::algorithms::Parameter *parameter,
201 int method)
const DAAL_C11_OVERRIDE;
204 services::Status checkImpl(
const daal::algorithms::Input *input,
const daal::algorithms::Parameter *parameter)
const;
207 template<
typename Archive,
bool onDeserialize>
208 services::Status serialImpl(Archive *arch)
210 return daal::algorithms::Result::serialImpl<Archive, onDeserialize>(arch);
213 typedef services::SharedPtr<Result> ResultPtr;
215 using interface1::InputIface;
216 using interface1::Input;
217 using interface1::Result;
218 using interface1::ResultPtr;
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:164
daal
Definition: algorithm_base_common.h:31
daal::algorithms::classifier::prediction::ModelInputId
ModelInputId
Definition: classifier_predict_types.h:64
daal::algorithms::classifier::prediction::NumericTableInputId
NumericTableInputId
Definition: classifier_predict_types.h:53
daal::algorithms::classifier::prediction::model
Definition: classifier_predict_types.h:66
daal::algorithms::classifier::prediction::prediction
Definition: classifier_predict_types.h:76
daal::algorithms::classifier::prediction::ResultId
ResultId
Definition: classifier_predict_types.h:74
daal::algorithms::math::abs::value
Definition: abs_types.h:86
daal::algorithms::classifier::prediction::data
Definition: classifier_predict_types.h:55