24 #ifndef __KDTREE_KNN_CLASSIFICATION_MODEL_H__
25 #define __KDTREE_KNN_CLASSIFICATION_MODEL_H__
27 #include "algorithms/classifier/classifier_model.h"
28 #include "data_management/data/aos_numeric_table.h"
29 #include "data_management/data/soa_numeric_table.h"
30 #include "data_management/data/homogen_numeric_table.h"
31 #include "algorithms/engines/mcg59/mcg59.h"
48 namespace kdtree_knn_classification
74 struct DAAL_EXPORT Parameter :
public daal::algorithms::classifier::interface1::Parameter
83 DAAL_DEPRECATED Parameter(
size_t nClasses = 2,
size_t nNeighbors = 1,
int randomSeed = 777, DataUseInModel dataUse = doNotUse)
84 : daal::algorithms::classifier::interface1::Parameter(nClasses),
87 dataUseInModel(dataUse),
88 engine(engines::mcg59::Batch<>::create())
94 DAAL_DEPRECATED services::Status check() const DAAL_C11_OVERRIDE;
98 DataUseInModel dataUseInModel;
99 engines::EnginePtr engine;
117 struct DAAL_EXPORT Parameter :
public daal::algorithms::classifier::Parameter
126 Parameter(
size_t nClasses = 2,
size_t nNeighbors = 1,
int randomSeed = 777, DataUseInModel dataUse = doNotUse)
127 : daal::algorithms::classifier::Parameter(nClasses),
130 dataUseInModel(dataUse),
131 engine(engines::mcg59::Batch<>::create())
137 services::Status check() const DAAL_C11_OVERRIDE;
141 DataUseInModel dataUseInModel;
142 engines::EnginePtr engine;
163 class DAAL_EXPORT Model :
public daal::algorithms::classifier::Model
166 DECLARE_MODEL_IFACE(Model, classifier::Model);
172 Model(
size_t nFeatures = 0);
179 static services::SharedPtr<Model> create(
size_t nFeatures = 0, services::Status *stat = NULL);
190 const ModelImpl *impl()
const {
return _impl; }
196 ModelImpl *impl() {
return _impl; }
202 size_t getNumberOfFeatures() const DAAL_C11_OVERRIDE;
205 Model(
size_t nFeatures, services::Status &st);
207 services::Status serializeImpl(data_management::InputDataArchive *arch) DAAL_C11_OVERRIDE;
209 services::Status deserializeImpl(const data_management::OutputDataArchive *arch) DAAL_C11_OVERRIDE;
214 typedef services::SharedPtr<Model> ModelPtr;
217 using interface2::Parameter;
218 using interface1::Model;
219 using interface1::ModelPtr;
daal::algorithms::kdtree_knn_classification::interface1::Model::impl
ModelImpl * impl()
Definition: kdtree_knn_classification_model.h:196
daal::algorithms::kdtree_knn_classification::interface1::Parameter
KD-tree based kNN algorithm parameters.
Definition: kdtree_knn_classification_model.h:74
daal::algorithms::kdtree_knn_classification::DataUseInModel
DataUseInModel
The option to enable/disable an usage of the input dataset in kNN model.
Definition: kdtree_knn_classification_model.h:55
daal::algorithms::kdtree_knn_classification::doNotUse
Definition: kdtree_knn_classification_model.h:57
daal::algorithms::kdtree_knn_classification::interface2::Parameter::Parameter
Parameter(size_t nClasses=2, size_t nNeighbors=1, int randomSeed=777, DataUseInModel dataUse=doNotUse)
Definition: kdtree_knn_classification_model.h:126
daal::algorithms::kdtree_knn_classification::interface2::Parameter
KD-tree based kNN algorithm parameters.
Definition: kdtree_knn_classification_model.h:117
daal::algorithms::kdtree_knn_classification::doUse
Definition: kdtree_knn_classification_model.h:58
daal::algorithms::classifier::interface1::Parameter
Base class for the parameters of the classification algorithm.
Definition: classifier_model.h:69
daal::algorithms::kdtree_knn_classification::interface1::Parameter::Parameter
DAAL_DEPRECATED Parameter(size_t nClasses=2, size_t nNeighbors=1, int randomSeed=777, DataUseInModel dataUse=doNotUse)
Definition: kdtree_knn_classification_model.h:83
daal::algorithms::kdtree_knn_classification::interface1::Model
Base class for models trained with the KD-tree based kNN algorithm
Definition: kdtree_knn_classification_model.h:163
daal::algorithms::kdtree_knn_classification::interface1::Model::impl
const ModelImpl * impl() const
Definition: kdtree_knn_classification_model.h:190