48 #ifndef __GBT_REGRESSSION_PREDICT_TYPES_H__
49 #define __GBT_REGRESSSION_PREDICT_TYPES_H__
51 #include "algorithms/algorithm.h"
52 #include "data_management/data/numeric_table.h"
53 #include "algorithms/regression/regression_predict_types.h"
54 #include "algorithms/gradient_boosted_trees/gbt_regression_model.h"
91 enum NumericTableInputId
93 data = algorithms::regression::prediction::data,
94 lastNumericTableInputId = data
103 model = algorithms::regression::prediction::model,
104 lastModelInputId = model
113 prediction = algorithms::regression::prediction::prediction,
114 lastResultId = prediction
130 struct DAAL_EXPORT Parameter :
public daal::algorithms::Parameter
132 Parameter() : daal::algorithms::Parameter(), nIterations(0) {}
133 Parameter(
const Parameter& o) : daal::algorithms::Parameter(o), nIterations(o.nIterations){}
142 class DAAL_EXPORT Input :
public algorithms::regression::prediction::Input
146 Input(
const Input& other);
153 data_management::NumericTablePtr
get(NumericTableInputId id)
const;
160 gbt::regression::ModelPtr
get(ModelInputId id)
const;
167 void set(NumericTableInputId
id,
const data_management::NumericTablePtr &value);
174 void set(ModelInputId
id,
const gbt::regression::ModelPtr &value);
180 services::Status check(
const daal::algorithms::Parameter *parameter,
int method)
const DAAL_C11_OVERRIDE;
187 class DAAL_EXPORT Result :
public algorithms::regression::prediction::Result
190 DECLARE_SERIALIZABLE_CAST(Result)
198 data_management::NumericTablePtr
get(ResultId id)
const;
205 void set(ResultId
id,
const data_management::NumericTablePtr &value);
214 template <
typename algorithmFPType>
215 DAAL_EXPORT services::Status allocate(
const daal::algorithms::Input *input,
const daal::algorithms::Parameter *par,
const int method);
224 services::Status check(
const daal::algorithms::Input *input,
const daal::algorithms::Parameter *par,
int method)
const DAAL_C11_OVERRIDE;
228 template<
typename Archive,
bool onDeserialize>
229 services::Status serialImpl(Archive *arch)
231 return daal::algorithms::Result::serialImpl<Archive, onDeserialize>(arch);
234 typedef services::SharedPtr<Result> ResultPtr;
235 typedef services::SharedPtr<const Result> ResultConstPtr;
238 using interface1::Parameter;
239 using interface1::Input;
240 using interface1::Result;
241 using interface1::ResultPtr;
242 using interface1::ResultConstPtr;
daal
Definition: algorithm_base_common.h:57
daal::algorithms::gbt::regression::prediction::interface1::Result
Provides interface for the result of model-based prediction.
Definition: gbt_regression_predict_types.h:187
daal::algorithms::gbt::regression::prediction::ModelInputId
ModelInputId
Available identifiers of input models for making model-based prediction.
Definition: gbt_regression_predict_types.h:101
daal::algorithms::gbt::regression::prediction::Method
Method
Available methods for making model-based prediction.
Definition: gbt_regression_predict_types.h:82
daal::algorithms::em_gmm::nIterations
Definition: em_gmm_types.h:123
daal::algorithms::gbt::regression::prediction::data
Definition: gbt_regression_predict_types.h:93
daal::algorithms::gbt::regression::prediction::interface1::Parameter::nIterations
size_t nIterations
Definition: gbt_regression_predict_types.h:134
daal::algorithms::gbt::regression::prediction::prediction
Definition: gbt_regression_predict_types.h:113
daal::algorithms::gbt::regression::prediction::model
Definition: gbt_regression_predict_types.h:103
daal::algorithms::regression::prediction::prediction
Definition: regression_predict_types.h:98
daal::algorithms::gbt::regression::prediction::NumericTableInputId
NumericTableInputId
Available identifiers of input numeric tables for making model-based prediction.
Definition: gbt_regression_predict_types.h:91
daal::algorithms::regression::prediction::data
Definition: regression_predict_types.h:78
daal::algorithms::math::abs::value
Definition: abs_types.h:112
daal::algorithms::gbt::regression::prediction::ResultId
ResultId
Available identifiers of the result for making model-based prediction.
Definition: gbt_regression_predict_types.h:111
daal::algorithms::gbt::regression::prediction::interface1::Parameter
Parameters of the prediction algorithm.
Definition: gbt_regression_predict_types.h:130
daal::algorithms::regression::prediction::model
Definition: regression_predict_types.h:88
daal::algorithms::gbt::regression::prediction::defaultDense
Definition: gbt_regression_predict_types.h:84