49 #ifndef __CLASSIFIER_PREDICT_TYPES_H__
50 #define __CLASSIFIER_PREDICT_TYPES_H__
52 #include "algorithms/algorithm.h"
53 #include "algorithms/classifier/classifier_model.h"
55 #include "data_management/data/homogen_numeric_table.h"
79 enum NumericTableInputId
82 lastNumericTableInputId = data
92 model = lastNumericTableInputId + 1,
93 lastModelInputId = model
103 lastResultId = prediction
115 class DAAL_EXPORT InputIface :
public daal::algorithms::Input
118 InputIface(
size_t nElements);
119 InputIface(
const InputIface& other) : daal::algorithms::Input(other){}
121 virtual ~InputIface() {}
126 virtual size_t getNumberOfRows()
const = 0;
133 class DAAL_EXPORT Input :
public InputIface
137 Input(
const Input& other) : InputIface(other){}
144 size_t getNumberOfRows()
const DAAL_C11_OVERRIDE;
151 data_management::NumericTablePtr
get(NumericTableInputId id)
const;
158 classifier::ModelPtr
get(ModelInputId id)
const;
165 void set(NumericTableInputId
id,
const data_management::NumericTablePtr &ptr);
172 void set(ModelInputId
id,
const ModelPtr &ptr);
179 services::Status check(
const daal::algorithms::Parameter *parameter,
int method)
const DAAL_C11_OVERRIDE;
182 services::Status checkImpl(
const daal::algorithms::Parameter *parameter)
const;
190 class DAAL_EXPORT Result :
public daal::algorithms::Result
193 DECLARE_SERIALIZABLE_CAST(Result);
201 data_management::NumericTablePtr
get(ResultId id)
const;
208 void set(ResultId
id,
const data_management::NumericTablePtr &value);
217 template <
typename algorithmFPType>
218 DAAL_EXPORT services::Status allocate(
const daal::algorithms::Input *input,
const daal::algorithms::Parameter *parameter,
const int method);
226 services::Status check(
const daal::algorithms::Input *input,
const daal::algorithms::Parameter *parameter,
227 int method)
const DAAL_C11_OVERRIDE;
230 services::Status checkImpl(
const daal::algorithms::Input *input,
const daal::algorithms::Parameter *parameter)
const;
233 template<
typename Archive,
bool onDeserialize>
234 services::Status serialImpl(Archive *arch)
236 return daal::algorithms::Result::serialImpl<Archive, onDeserialize>(arch);
239 typedef services::SharedPtr<Result> ResultPtr;
241 using interface1::InputIface;
242 using interface1::Input;
243 using interface1::Result;
244 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:190
daal
Definition: algorithm_base_common.h:57
daal::algorithms::classifier::prediction::ModelInputId
ModelInputId
Definition: classifier_predict_types.h:90
daal::algorithms::classifier::prediction::NumericTableInputId
NumericTableInputId
Definition: classifier_predict_types.h:79
daal::algorithms::classifier::prediction::model
Definition: classifier_predict_types.h:92
daal::algorithms::classifier::prediction::prediction
Definition: classifier_predict_types.h:102
daal::algorithms::classifier::prediction::ResultId
ResultId
Definition: classifier_predict_types.h:100
daal::algorithms::math::abs::value
Definition: abs_types.h:112
daal::algorithms::classifier::prediction::data
Definition: classifier_predict_types.h:81