22 #ifndef __GBT_REGRESSSION_PREDICT_TYPES_H__
23 #define __GBT_REGRESSSION_PREDICT_TYPES_H__
25 #include "algorithms/algorithm.h"
26 #include "data_management/data/numeric_table.h"
27 #include "algorithms/regression/regression_predict_types.h"
28 #include "algorithms/gradient_boosted_trees/gbt_regression_model.h"
65 enum NumericTableInputId
67 data = algorithms::regression::prediction::data,
68 lastNumericTableInputId = data
77 model = algorithms::regression::prediction::model,
78 lastModelInputId = model
87 prediction = algorithms::regression::prediction::prediction,
88 lastResultId = prediction
104 struct DAAL_EXPORT Parameter :
public daal::algorithms::Parameter
106 Parameter() : daal::algorithms::Parameter(), nIterations(0) {}
107 Parameter(
const Parameter& o) : daal::algorithms::Parameter(o), nIterations(o.nIterations){}
116 class DAAL_EXPORT Input :
public algorithms::regression::prediction::Input
120 Input(
const Input& other);
127 data_management::NumericTablePtr
get(NumericTableInputId id)
const;
134 gbt::regression::ModelPtr
get(ModelInputId id)
const;
141 void set(NumericTableInputId
id,
const data_management::NumericTablePtr &value);
148 void set(ModelInputId
id,
const gbt::regression::ModelPtr &value);
154 services::Status check(
const daal::algorithms::Parameter *parameter,
int method)
const DAAL_C11_OVERRIDE;
161 class DAAL_EXPORT Result :
public algorithms::regression::prediction::Result
164 DECLARE_SERIALIZABLE_CAST(Result)
172 data_management::NumericTablePtr
get(ResultId id)
const;
179 void set(ResultId
id,
const data_management::NumericTablePtr &value);
188 template <
typename algorithmFPType>
189 DAAL_EXPORT services::Status allocate(
const daal::algorithms::Input *input,
const daal::algorithms::Parameter *par,
const int method);
198 services::Status check(
const daal::algorithms::Input *input,
const daal::algorithms::Parameter *par,
int method)
const DAAL_C11_OVERRIDE;
202 template<
typename Archive,
bool onDeserialize>
203 services::Status serialImpl(Archive *arch)
205 return daal::algorithms::Result::serialImpl<Archive, onDeserialize>(arch);
208 typedef services::SharedPtr<Result> ResultPtr;
209 typedef services::SharedPtr<const Result> ResultConstPtr;
212 using interface1::Parameter;
213 using interface1::Input;
214 using interface1::Result;
215 using interface1::ResultPtr;
216 using interface1::ResultConstPtr;
daal
Definition: algorithm_base_common.h:31
daal::algorithms::gbt::regression::prediction::interface1::Result
Provides interface for the result of model-based prediction.
Definition: gbt_regression_predict_types.h:161
daal::algorithms::gbt::regression::prediction::ModelInputId
ModelInputId
Available identifiers of input models for making model-based prediction.
Definition: gbt_regression_predict_types.h:75
daal::algorithms::gbt::regression::prediction::Method
Method
Available methods for making model-based prediction.
Definition: gbt_regression_predict_types.h:56
daal::algorithms::em_gmm::nIterations
Definition: em_gmm_types.h:97
daal::algorithms::gbt::regression::prediction::data
Definition: gbt_regression_predict_types.h:67
daal::algorithms::gbt::regression::prediction::interface1::Parameter::nIterations
size_t nIterations
Definition: gbt_regression_predict_types.h:108
daal::algorithms::gbt::regression::prediction::prediction
Definition: gbt_regression_predict_types.h:87
daal::algorithms::gbt::regression::prediction::model
Definition: gbt_regression_predict_types.h:77
daal::algorithms::regression::prediction::prediction
Definition: regression_predict_types.h:72
daal::algorithms::gbt::regression::prediction::NumericTableInputId
NumericTableInputId
Available identifiers of input numeric tables for making model-based prediction.
Definition: gbt_regression_predict_types.h:65
daal::algorithms::regression::prediction::data
Definition: regression_predict_types.h:52
daal::algorithms::math::abs::value
Definition: abs_types.h:86
daal::algorithms::gbt::regression::prediction::ResultId
ResultId
Available identifiers of the result for making model-based prediction.
Definition: gbt_regression_predict_types.h:85
daal::algorithms::gbt::regression::prediction::interface1::Parameter
Parameters of the prediction algorithm.
Definition: gbt_regression_predict_types.h:104
daal::algorithms::regression::prediction::model
Definition: regression_predict_types.h:62
daal::algorithms::gbt::regression::prediction::defaultDense
Definition: gbt_regression_predict_types.h:58