48 #ifndef __DECISION_FOREST_REGRESSION_TRAINIG_TYPES_H__ 49 #define __DECISION_FOREST_REGRESSION_TRAINIG_TYPES_H__ 51 #include "algorithms/algorithm.h" 52 #include "data_management/data/numeric_table.h" 53 #include "data_management/data/data_serialize.h" 54 #include "services/daal_defines.h" 55 #include "algorithms/decision_forest/decision_forest_regression_model.h" 56 #include "algorithms/decision_forest/decision_forest_training_parameter.h" 57 #include "algorithms/regression/regression_training_types.h" 66 namespace decision_forest
96 data = algorithms::regression::training::data,
97 dependentVariable = algorithms::regression::training::dependentVariables,
98 lastInputId = dependentVariable
107 model = algorithms::regression::training::model,
115 enum ResultNumericTableId
117 outOfBagError = lastResultId + 1,
121 outOfBagErrorPerObservation,
123 lastResultNumericTableId = outOfBagErrorPerObservation
138 class DAAL_EXPORT Parameter :
public daal::algorithms::Parameter,
public daal::algorithms::decision_forest::training::Parameter
142 services::Status check()
const DAAL_C11_OVERRIDE;
150 class DAAL_EXPORT Input :
public algorithms::regression::training::Input
157 Input(
const Input& other) : algorithms::regression::training::Input(other){}
166 data_management::NumericTablePtr
get(InputId id)
const;
173 void set(InputId id,
const data_management::NumericTablePtr &value);
181 services::Status check(
const daal::algorithms::Parameter *par,
int method)
const DAAL_C11_OVERRIDE;
189 class DAAL_EXPORT Result :
public algorithms::regression::training::Result
192 DECLARE_SERIALIZABLE_CAST(Result)
202 template<
typename algorithmFPType>
203 DAAL_EXPORT services::Status allocate(
const daal::algorithms::Input *input,
const Parameter *parameter,
const int method);
210 decision_forest::regression::ModelPtr
get(ResultId id)
const;
217 void set(ResultId id,
const ModelPtr &value);
224 data_management::NumericTablePtr
get(ResultNumericTableId id)
const;
231 void set(ResultNumericTableId id,
const data_management::NumericTablePtr &value);
240 services::Status check(
const daal::algorithms::Input *input,
const daal::algorithms::Parameter *par,
int method)
const DAAL_C11_OVERRIDE;
244 template<
typename Archive,
bool onDeserialize>
245 services::Status serialImpl(Archive *arch)
247 return daal::algorithms::Result::serialImpl<Archive, onDeserialize>(arch);
250 typedef services::SharedPtr<Result> ResultPtr;
253 using interface1::Parameter;
254 using interface1::Input;
255 using interface1::Result;
256 using interface1::ResultPtr;
daal::algorithms::regression::training::interface1::Result
Provides methods to access the result obtained with the compute() method of the regression model-base...
Definition: regression_training_types.h:168
daal::algorithms::decision_forest::regression::training::interface1::Result
Provides methods to access the result obtained with the compute() method of decision forest model-bas...
Definition: decision_forest_regression_training_types.h:189
daal::services::interface1::Status
Class that holds the results of API calls. In case of API routine failure it contains the list of err...
Definition: error_handling.h:491
daal
Definition: algorithm_base_common.h:57
daal::algorithms::decision_forest::regression::training::InputId
InputId
Available identifiers of input objects for decision forest model-based training.
Definition: decision_forest_regression_training_types.h:94
daal::algorithms::regression::training::dependentVariables
Definition: regression_training_types.h:79
daal::algorithms::decision_forest::regression::training::ResultNumericTableId
ResultNumericTableId
Available identifiers of the result of decision forest model-based training.
Definition: decision_forest_regression_training_types.h:115
daal::algorithms::decision_forest::regression::training::interface1::Parameter
Parameters for the decision forest algorithm.
Definition: decision_forest_regression_training_types.h:138
daal::algorithms::decision_forest::regression::training::dependentVariable
Definition: decision_forest_regression_training_types.h:97
daal::algorithms::interface1::Parameter
Base class to represent computation parameters. Algorithm-specific parameters are represented as deri...
Definition: algorithm_types.h:86
daal::services::interface1::SharedPtr
Shared pointer that retains shared ownership of an object through a pointer. Several SharedPtr object...
Definition: daal_shared_ptr.h:187
daal::algorithms::decision_forest::training::interface1::Parameter
Parameters for the decision forest algorithm.
Definition: decision_forest_training_parameter.h:122
daal::algorithms::regression::training::model
Definition: regression_training_types.h:89
daal::algorithms::decision_forest::regression::training::data
Definition: decision_forest_regression_training_types.h:96
daal::algorithms::decision_forest::regression::training::outOfBagErrorPerObservation
Definition: decision_forest_regression_training_types.h:121
daal::algorithms::decision_forest::regression::training::outOfBagError
Definition: decision_forest_regression_training_types.h:117
daal::algorithms::decision_forest::regression::training::variableImportance
Definition: decision_forest_regression_training_types.h:119
daal::algorithms::math::abs::value
Definition: abs_types.h:112
daal::algorithms::regression::training::data
Definition: regression_training_types.h:78
daal::algorithms::decision_forest::regression::training::defaultDense
Definition: decision_forest_regression_training_types.h:87
daal::algorithms::decision_forest::regression::training::ResultId
ResultId
Available identifiers of the result of decision forest model-based training.
Definition: decision_forest_regression_training_types.h:105
daal::algorithms::decision_forest::regression::training::Method
Method
Computation methods for decision forest regression model-based training.
Definition: decision_forest_regression_training_types.h:85
daal::algorithms::decision_forest::regression::training::model
Definition: decision_forest_regression_training_types.h:107