49 #ifndef __KMEANS_INIT_DISTRIBITED_H__ 50 #define __KMEANS_INIT_DISTRIBITED_H__ 52 #include "algorithms/algorithm.h" 53 #include "data_management/data/numeric_table.h" 54 #include "services/daal_defines.h" 55 #include "algorithms/kmeans/kmeans_init_types.h" 82 template<ComputeStep step,
typename algorithmFPType, Method method, CpuType cpu>
83 class DAAL_EXPORT DistributedContainer;
89 template<
typename algorithmFPType, Method method, CpuType cpu>
90 class DAAL_EXPORT DistributedContainer<step1Local, algorithmFPType, method, cpu> :
public 91 daal::algorithms::AnalysisContainerIface<distributed>
99 DistributedContainer(daal::services::Environment::env *daalEnv);
101 virtual ~DistributedContainer();
106 virtual services::Status compute() DAAL_C11_OVERRIDE;
111 virtual services::Status finalizeCompute() DAAL_C11_OVERRIDE;
118 template<
typename algorithmFPType, Method method, CpuType cpu>
119 class DAAL_EXPORT DistributedContainer<step2Master, algorithmFPType, method, cpu> :
public 120 daal::algorithms::AnalysisContainerIface<distributed>
128 DistributedContainer(daal::services::Environment::env *daalEnv);
130 virtual ~DistributedContainer();
135 virtual services::Status compute() DAAL_C11_OVERRIDE;
140 virtual services::Status finalizeCompute() DAAL_C11_OVERRIDE;
148 template<
typename algorithmFPType, Method method, CpuType cpu>
149 class DAAL_EXPORT DistributedContainer<step2Local, algorithmFPType, method, cpu> :
public 150 daal::algorithms::AnalysisContainerIface<distributed>
158 DistributedContainer(daal::services::Environment::env *daalEnv);
160 virtual ~DistributedContainer();
165 virtual services::Status compute() DAAL_C11_OVERRIDE;
170 virtual services::Status finalizeCompute() DAAL_C11_OVERRIDE;
178 template<
typename algorithmFPType, Method method, CpuType cpu>
179 class DAAL_EXPORT DistributedContainer<step3Master, algorithmFPType, method, cpu> :
public 180 daal::algorithms::AnalysisContainerIface<distributed>
188 DistributedContainer(daal::services::Environment::env *daalEnv);
190 virtual ~DistributedContainer();
195 virtual services::Status compute() DAAL_C11_OVERRIDE;
200 virtual services::Status finalizeCompute() DAAL_C11_OVERRIDE;
208 template<
typename algorithmFPType, Method method, CpuType cpu>
209 class DAAL_EXPORT DistributedContainer<step4Local, algorithmFPType, method, cpu> :
public 210 daal::algorithms::AnalysisContainerIface<distributed>
218 DistributedContainer(daal::services::Environment::env *daalEnv);
220 virtual ~DistributedContainer();
225 virtual services::Status compute() DAAL_C11_OVERRIDE;
230 virtual services::Status finalizeCompute() DAAL_C11_OVERRIDE;
238 template<
typename algorithmFPType, Method method, CpuType cpu>
239 class DAAL_EXPORT DistributedContainer<step5Master, algorithmFPType, method, cpu> :
public 240 daal::algorithms::AnalysisContainerIface<distributed>
248 DistributedContainer(daal::services::Environment::env *daalEnv);
250 virtual ~DistributedContainer();
255 virtual services::Status compute() DAAL_C11_OVERRIDE;
260 virtual services::Status finalizeCompute() DAAL_C11_OVERRIDE;
280 template<ComputeStep step,
typename algorithmFPType = DAAL_ALGORITHM_FP_TYPE, Method method = defaultDense>
281 class DAAL_EXPORT Distributed;
300 template<
typename algorithmFPType, Method method>
301 class DAAL_EXPORT Distributed<step1Local, algorithmFPType, method> :
public daal::algorithms::Analysis<distributed>
304 typedef algorithms::kmeans::init::Input InputType;
305 typedef algorithms::kmeans::init::Parameter ParameterType;
306 typedef algorithms::kmeans::init::Result ResultType;
307 typedef algorithms::kmeans::init::PartialResult PartialResultType;
315 Distributed(
size_t nClusters,
size_t nRowsTotal,
size_t offset = 0) : parameter(nClusters, offset)
318 parameter.nRowsTotal = nRowsTotal;
326 Distributed(
const Distributed<step1Local, algorithmFPType, method> &other) : parameter(other.parameter)
329 input.set(data, other.input.get(data));
336 virtual int getMethod() const DAAL_C11_OVERRIDE {
return(
int) method; }
342 ResultPtr getResult()
351 services::Status setResult(
const ResultPtr& result)
353 DAAL_CHECK(result, services::ErrorNullResult)
355 _res = _result.get();
356 return services::Status();
363 PartialResultPtr getPartialResult()
365 return _partialResult;
372 services::Status setPartialResult(
const PartialResultPtr& partialRes)
374 DAAL_CHECK(partialRes, services::ErrorNullPartialResult);
375 _partialResult = partialRes;
376 _pres = _partialResult.get();
377 return services::Status();
383 services::Status checkFinalizeComputeParams() DAAL_C11_OVERRIDE
385 return services::Status();
393 services::SharedPtr<Distributed<step1Local, algorithmFPType, method> > clone()
const 395 return services::SharedPtr<Distributed<step1Local, algorithmFPType, method> >(cloneImpl());
399 virtual Distributed<step1Local, algorithmFPType, method> * cloneImpl()
const DAAL_C11_OVERRIDE
401 return new Distributed<step1Local, algorithmFPType, method>(*this);
404 virtual services::Status allocateResult() DAAL_C11_OVERRIDE
406 _result.reset(
new ResultType());
407 services::Status s = _result->allocate<algorithmFPType>(_pres, _par, (int) method);
408 _res = _result.get();
412 virtual services::Status allocatePartialResult() DAAL_C11_OVERRIDE
414 _partialResult.reset(
new PartialResultType());
415 services::Status s = _partialResult->allocate<algorithmFPType>(&input, _par, (int) method);
416 _pres = _partialResult.get();
420 virtual services::Status initializePartialResult() DAAL_C11_OVERRIDE
422 return services::Status();
427 Analysis<distributed>::_ac =
new __DAAL_ALGORITHM_CONTAINER(distributed, DistributedContainer, step1Local, algorithmFPType, method)(&_env);
434 ParameterType parameter;
437 PartialResultPtr _partialResult;
458 template<
typename algorithmFPType, Method method>
459 class DAAL_EXPORT Distributed<step2Master, algorithmFPType, method>:
public daal::algorithms::Analysis<distributed>
462 typedef algorithms::kmeans::init::DistributedStep2MasterInput InputType;
463 typedef algorithms::kmeans::init::Parameter ParameterType;
464 typedef algorithms::kmeans::init::Result ResultType;
465 typedef algorithms::kmeans::init::PartialResult PartialResultType;
472 Distributed(
size_t nClusters,
size_t offset = 0) : parameter(nClusters, offset)
474 Analysis<distributed>::_ac =
new __DAAL_ALGORITHM_CONTAINER(distributed, DistributedContainer, step2Master, algorithmFPType, method)(&_env);
483 virtual int getMethod() const DAAL_C11_OVERRIDE {
return(
int) method; }
489 ResultPtr getResult()
497 services::Status setResult(
const ResultPtr& result)
499 DAAL_CHECK(result, services::ErrorNullResult)
501 _res = _result.get();
502 return services::Status();
509 PartialResultPtr getPartialResult()
511 return _partialResult;
518 services::Status setPartialResult(
const PartialResultPtr& partialRes)
520 DAAL_CHECK(partialRes, services::ErrorNullPartialResult);
521 _partialResult = partialRes;
522 _pres = _partialResult.get();
523 return services::Status();
529 services::Status checkFinalizeComputeParams() DAAL_C11_OVERRIDE
534 s |= _partialResult->check(_par, method);
535 if (!s) {
return s; }
539 return services::Status(services::ErrorNullResult);
544 s |= _result->check(&input, _par, method);
548 return services::Status(services::ErrorNullResult);
558 services::SharedPtr<Distributed<step2Master, algorithmFPType, method> > clone()
const 560 return services::SharedPtr<Distributed<step2Master, algorithmFPType, method> >(cloneImpl());
564 virtual Distributed<step2Master, algorithmFPType, method> * cloneImpl()
const DAAL_C11_OVERRIDE
566 return new Distributed<step2Master, algorithmFPType, method>(*this);
569 virtual services::Status allocateResult() DAAL_C11_OVERRIDE
571 _result.reset(
new ResultType());
572 services::Status s = _result->allocate<algorithmFPType>(_pres, _par, (int)method);
573 _res = _result.get();
577 virtual services::Status allocatePartialResult() DAAL_C11_OVERRIDE
579 _partialResult.reset(
new PartialResultType());
580 services::Status s = _partialResult->allocate<algorithmFPType>(&input, _par, (int)method);
582 _pres = _partialResult.get();
585 _result.reset(
new ResultType());
586 s |= _result->allocate<algorithmFPType>(&input, _par, (int)method);
587 _res = _result.get();
592 virtual services::Status initializePartialResult() DAAL_C11_OVERRIDE
594 return services::Status();
599 Analysis<distributed>::_ac =
new __DAAL_ALGORITHM_CONTAINER(distributed, DistributedContainer, step2Master, algorithmFPType, method)(&_env);
606 ParameterType parameter;
609 PartialResultPtr _partialResult;
634 template<
typename algorithmFPType, Method method>
635 class DAAL_EXPORT Distributed<step2Local, algorithmFPType, method> :
public daal::algorithms::Analysis<distributed>
638 typedef algorithms::kmeans::init::DistributedStep2LocalPlusPlusInput InputType;
639 typedef algorithms::kmeans::init::DistributedStep2LocalPlusPlusParameter ParameterType;
640 typedef algorithms::kmeans::init::DistributedStep2LocalPlusPlusPartialResult PartialResultType;
647 Distributed(
size_t nClusters,
bool bFirstIteration) : parameter(nClusters, bFirstIteration)
657 Distributed(
const Distributed<step2Local, algorithmFPType, method> &other) : parameter(other.parameter), input(other.input)
666 virtual int getMethod() const DAAL_C11_OVERRIDE{
return(
int)method; }
672 DistributedStep2LocalPlusPlusPartialResultPtr getPartialResult()
674 return _partialResult;
681 services::Status setPartialResult(
const DistributedStep2LocalPlusPlusPartialResultPtr& partialRes)
683 DAAL_CHECK(partialRes, services::ErrorNullPartialResult);
684 _partialResult = partialRes;
685 _pres = _partialResult.get();
686 return services::Status();
692 services::Status checkFinalizeComputeParams() DAAL_C11_OVERRIDE
694 return services::Status();
702 services::SharedPtr<Distributed<step2Local, algorithmFPType, method> > clone()
const 704 return services::SharedPtr<Distributed<step2Local, algorithmFPType, method> >(cloneImpl());
708 virtual Distributed<step2Local, algorithmFPType, method> * cloneImpl()
const DAAL_C11_OVERRIDE
710 return new Distributed<step2Local, algorithmFPType, method>(*this);
713 virtual services::Status allocateResult() DAAL_C11_OVERRIDE
715 return services::Status();
718 virtual services::Status allocatePartialResult() DAAL_C11_OVERRIDE
720 _partialResult.reset(
new DistributedStep2LocalPlusPlusPartialResult());
721 services::Status s = _partialResult->allocate<algorithmFPType>(&input, _par, (int)method);
722 _pres = _partialResult.get();
726 virtual services::Status initializePartialResult() DAAL_C11_OVERRIDE
728 _partialResult->initialize(&input, _par, (
int)method);
729 return services::Status();
734 Analysis<distributed>::_ac =
new __DAAL_ALGORITHM_CONTAINER(distributed, DistributedContainer, step2Local, algorithmFPType, method)(&_env);
741 ParameterType parameter;
744 DistributedStep2LocalPlusPlusPartialResultPtr _partialResult;
767 template<
typename algorithmFPType, Method method>
768 class DAAL_EXPORT Distributed<step3Master, algorithmFPType, method> :
public daal::algorithms::Analysis<distributed>
771 typedef algorithms::kmeans::init::DistributedStep3MasterPlusPlusInput InputType;
772 typedef algorithms::kmeans::init::Parameter ParameterType;
773 typedef algorithms::kmeans::init::DistributedStep3MasterPlusPlusPartialResult PartialResultType;
779 Distributed(
size_t nClusters) : parameter(nClusters)
789 Distributed(
const Distributed<step3Master, algorithmFPType, method> &other) : parameter(other.parameter), input(other.input)
798 virtual int getMethod() const DAAL_C11_OVERRIDE{
return(
int)method; }
804 DistributedStep3MasterPlusPlusPartialResultPtr getPartialResult()
806 return _partialResult;
813 services::Status setPartialResult(
const DistributedStep3MasterPlusPlusPartialResultPtr& partialRes)
815 DAAL_CHECK(partialRes, services::ErrorNullPartialResult);
816 _partialResult = partialRes;
817 _pres = _partialResult.get();
818 return services::Status();
824 services::Status checkFinalizeComputeParams() DAAL_C11_OVERRIDE
826 return services::Status();
834 services::SharedPtr<Distributed<step3Master, algorithmFPType, method> > clone()
const 836 return services::SharedPtr<Distributed<step3Master, algorithmFPType, method> >(cloneImpl());
840 virtual Distributed<step3Master, algorithmFPType, method> * cloneImpl()
const DAAL_C11_OVERRIDE
842 return new Distributed<step3Master, algorithmFPType, method>(*this);
845 virtual services::Status allocateResult() DAAL_C11_OVERRIDE
847 return services::Status();
850 virtual services::Status allocatePartialResult() DAAL_C11_OVERRIDE
852 _partialResult.reset(
new PartialResultType());
853 services::Status s = _partialResult->allocate<algorithmFPType>(&input, _par, (int)method);
854 _pres = _partialResult.get();
858 virtual services::Status initializePartialResult() DAAL_C11_OVERRIDE
860 _partialResult->initialize(&input, _par, (
int)method);
861 return services::Status();
866 Analysis<distributed>::_ac =
new __DAAL_ALGORITHM_CONTAINER(distributed, DistributedContainer, step3Master, algorithmFPType, method)(&_env);
873 ParameterType parameter;
876 DistributedStep3MasterPlusPlusPartialResultPtr _partialResult;
899 template<
typename algorithmFPType, Method method>
900 class DAAL_EXPORT Distributed<step4Local, algorithmFPType, method> :
public daal::algorithms::Analysis<distributed>
903 typedef algorithms::kmeans::init::DistributedStep4LocalPlusPlusInput InputType;
904 typedef algorithms::kmeans::init::Parameter ParameterType;
905 typedef algorithms::kmeans::init::DistributedStep4LocalPlusPlusPartialResult PartialResultType;
911 Distributed(
size_t nClusters) : parameter(nClusters)
921 Distributed(
const Distributed<step4Local, algorithmFPType, method> &other) : parameter(other.parameter), input(other.input)
930 virtual int getMethod() const DAAL_C11_OVERRIDE{
return(
int)method; }
936 DistributedStep4LocalPlusPlusPartialResultPtr getPartialResult()
938 return _partialResult;
945 services::Status setPartialResult(
const DistributedStep4LocalPlusPlusPartialResultPtr& partialRes)
947 DAAL_CHECK(partialRes, services::ErrorNullPartialResult);
948 _partialResult = partialRes;
949 _pres = _partialResult.get();
950 return services::Status();
956 services::Status checkFinalizeComputeParams() DAAL_C11_OVERRIDE
958 return services::Status();
966 services::SharedPtr<Distributed<step4Local, algorithmFPType, method> > clone()
const 968 return services::SharedPtr<Distributed<step4Local, algorithmFPType, method> >(cloneImpl());
972 virtual Distributed<step4Local, algorithmFPType, method> * cloneImpl()
const DAAL_C11_OVERRIDE
974 return new Distributed<step4Local, algorithmFPType, method>(*this);
977 virtual services::Status allocateResult() DAAL_C11_OVERRIDE
979 return services::Status();
982 virtual services::Status allocatePartialResult() DAAL_C11_OVERRIDE
984 _partialResult.reset(
new PartialResultType());
985 services::Status s = _partialResult->allocate<algorithmFPType>(&input, _par, (int)method);
986 _pres = _partialResult.get();
990 virtual services::Status initializePartialResult() DAAL_C11_OVERRIDE
992 return services::Status();
997 Analysis<distributed>::_ac =
new __DAAL_ALGORITHM_CONTAINER(distributed, DistributedContainer, step4Local, algorithmFPType, method)(&_env);
1004 ParameterType parameter;
1007 DistributedStep4LocalPlusPlusPartialResultPtr _partialResult;
1030 template<
typename algorithmFPType, Method method>
1031 class DAAL_EXPORT Distributed<step5Master, algorithmFPType, method> :
public daal::algorithms::Analysis<distributed>
1034 typedef algorithms::kmeans::init::DistributedStep5MasterPlusPlusInput InputType;
1035 typedef algorithms::kmeans::init::Parameter ParameterType;
1036 typedef algorithms::kmeans::init::Result ResultType;
1037 typedef algorithms::kmeans::init::DistributedStep5MasterPlusPlusPartialResult PartialResultType;
1043 Distributed(
size_t nClusters) : parameter(nClusters)
1053 Distributed(
const Distributed<step5Master, algorithmFPType, method> &other) : parameter(other.parameter), input(other.input)
1062 virtual int getMethod() const DAAL_C11_OVERRIDE{
return(
int)method; }
1068 ResultPtr getResult()
1077 services::Status setResult(
const ResultPtr& result)
1079 DAAL_CHECK(result, services::ErrorNullResult)
1081 _res = _result.get();
1082 return services::Status();
1089 DistributedStep5MasterPlusPlusPartialResultPtr getPartialResult()
1091 return _partialResult;
1098 services::Status setPartialResult(
const DistributedStep5MasterPlusPlusPartialResultPtr& partialRes)
1100 DAAL_CHECK(partialRes, services::ErrorNullPartialResult);
1101 _partialResult = partialRes;
1102 _pres = _partialResult.get();
1103 return services::Status();
1109 services::Status checkFinalizeComputeParams() DAAL_C11_OVERRIDE
1111 return services::Status();
1119 services::SharedPtr<Distributed<step5Master, algorithmFPType, method> > clone()
const 1121 return services::SharedPtr<Distributed<step5Master, algorithmFPType, method> >(cloneImpl());
1125 virtual Distributed<step5Master, algorithmFPType, method> * cloneImpl()
const DAAL_C11_OVERRIDE
1127 return new Distributed<step5Master, algorithmFPType, method>(*this);
1130 virtual services::Status allocateResult() DAAL_C11_OVERRIDE
1132 _result.reset(
new ResultType());
1133 services::Status s = _result->allocate<algorithmFPType>(_pres, _par, (int)method);
1134 _res = _result.get();
1138 virtual services::Status allocatePartialResult() DAAL_C11_OVERRIDE
1140 _partialResult.reset(
new PartialResultType());
1141 services::Status s = _partialResult->allocate<algorithmFPType>(&input, _par, (int)method);
1142 _pres = _partialResult.get();
1146 virtual services::Status initializePartialResult() DAAL_C11_OVERRIDE
1148 return services::Status();
1153 Analysis<distributed>::_ac =
new __DAAL_ALGORITHM_CONTAINER(distributed, DistributedContainer, step5Master, algorithmFPType, method)(&_env);
1160 ParameterType parameter;
1163 DistributedStep5MasterPlusPlusPartialResultPtr _partialResult;
1167 using interface1::DistributedContainer;
1168 using interface1::Distributed;
daal::algorithms::kmeans::interface1::Distributed
Computes the results of the K-Means algorithm in the distributed processing mode. ...
Definition: kmeans_distributed.h:159
daal::step2Local
Definition: daal_defines.h:148
daal::algorithms::kmeans::init::interface1::Distributed< step3Master, algorithmFPType, method >::Distributed
Distributed(const Distributed< step3Master, algorithmFPType, method > &other)
Definition: kmeans_init_distributed.h:789
daal::algorithms::kmeans::init::interface1::Distributed< step2Local, algorithmFPType, method >::Distributed
Distributed(const Distributed< step2Local, algorithmFPType, method > &other)
Definition: kmeans_init_distributed.h:657
daal::algorithms::kmeans::init::interface1::Distributed< step3Master, algorithmFPType, method >::Distributed
Distributed(size_t nClusters)
Definition: kmeans_init_distributed.h:779
daal::services::interface1::Environment::_envStruct
The environment structure.
Definition: env_detect.h:95
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::step5Master
Definition: daal_defines.h:150
daal::algorithms::kmeans::init::interface1::Distributed< step4Local, algorithmFPType, method >
Computes initial clusters for the K-Means algorithm in the 4th step of the distributed processing mod...
Definition: kmeans_init_distributed.h:900
daal::algorithms::AnalysisContainerIface
Abstract interface class that provides virtual methods to access and run implementations of the analy...
Definition: analysis.h:79
daal::algorithms::kmeans::init::interface1::Distributed< step4Local, algorithmFPType, method >::setPartialResult
services::Status setPartialResult(const DistributedStep4LocalPlusPlusPartialResultPtr &partialRes)
Definition: kmeans_init_distributed.h:945
daal::algorithms::kmeans::init::interface1::Distributed< step5Master, algorithmFPType, method >::Distributed
Distributed(const Distributed< step5Master, algorithmFPType, method > &other)
Definition: kmeans_init_distributed.h:1053
daal::algorithms::kmeans::init::interface1::PartialResult
Partial results obtained with the compute() method of the K-Means algorithm in the batch processing m...
Definition: kmeans_init_types.h:383
daal::algorithms::kmeans::init::interface1::Distributed< step4Local, algorithmFPType, method >::getPartialResult
DistributedStep4LocalPlusPlusPartialResultPtr getPartialResult()
Definition: kmeans_init_distributed.h:936
daal::algorithms::kmeans::init::interface1::Distributed< step3Master, algorithmFPType, method >::setPartialResult
services::Status setPartialResult(const DistributedStep3MasterPlusPlusPartialResultPtr &partialRes)
Definition: kmeans_init_distributed.h:813
daal::algorithms::kmeans::init::interface1::Distributed< step1Local, algorithmFPType, method >::checkFinalizeComputeParams
services::Status checkFinalizeComputeParams() DAAL_C11_OVERRIDE
Definition: kmeans_init_distributed.h:383
daal::algorithms::kmeans::init::interface1::Distributed< step2Master, algorithmFPType, method >
Computes initial clusters for the K-Means algorithm in the 2nd step of the distributed processing mod...
Definition: kmeans_init_distributed.h:459
daal::algorithms::kmeans::init::interface1::Distributed< step2Master, algorithmFPType, method >::Distributed
Distributed(size_t nClusters, size_t offset=0)
Definition: kmeans_init_distributed.h:472
daal::services::ErrorNullPartialResult
Definition: error_indexes.h:131
daal::algorithms::kmeans::init::interface1::DistributedStep2LocalPlusPlusPartialResult
Partial results obtained with the compute() method of the K-Means algorithm in the distributed proces...
Definition: kmeans_init_types.h:825
daal::algorithms::kmeans::init::interface1::Distributed< step1Local, algorithmFPType, method >::parameter
ParameterType parameter
Definition: kmeans_init_distributed.h:434
daal::algorithms::kmeans::init::interface1::DistributedStep2LocalPlusPlusParameter
Parameters for computing initial centroids for the K-Means algorithm.
Definition: kmeans_init_types.h:574
daal::step3Master
Definition: daal_defines.h:149
daal::algorithms::kmeans::init::interface1::Distributed< step3Master, algorithmFPType, method >::getPartialResult
DistributedStep3MasterPlusPlusPartialResultPtr getPartialResult()
Definition: kmeans_init_distributed.h:804
daal::algorithms::kmeans::init::interface1::Distributed< step4Local, algorithmFPType, method >::clone
services::SharedPtr< Distributed< step4Local, algorithmFPType, method > > clone() const
Definition: kmeans_init_distributed.h:966
daal::algorithms::kmeans::init::interface1::Distributed
class DAAL_EXPORT Distributed
Computes initial clusters for the K-Means algorithm in the distributed processing mode...
Definition: kmeans_init_distributed.h:281
daal::distributed
Definition: daal_defines.h:133
daal::algorithms::kmeans::init::interface1::Distributed< step4Local, algorithmFPType, method >::Distributed
Distributed(const Distributed< step4Local, algorithmFPType, method > &other)
Definition: kmeans_init_distributed.h:921
daal::algorithms::kmeans::init::interface1::Distributed< step2Local, algorithmFPType, method >::clone
services::SharedPtr< Distributed< step2Local, algorithmFPType, method > > clone() const
Definition: kmeans_init_distributed.h:702
daal::algorithms::kmeans::init::interface1::Distributed< step2Local, algorithmFPType, method >
Computes initial clusters for the K-Means algorithm in the 2nd step of the distributed processing mod...
Definition: kmeans_init_distributed.h:635
daal::algorithms::kmeans::init::interface1::Distributed< step2Master, algorithmFPType, method >::clone
services::SharedPtr< Distributed< step2Master, algorithmFPType, method > > clone() const
Definition: kmeans_init_distributed.h:558
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::kmeans::init::interface1::Distributed< step1Local, algorithmFPType, method >::setPartialResult
services::Status setPartialResult(const PartialResultPtr &partialRes)
Definition: kmeans_init_distributed.h:372
daal::algorithms::kmeans::init::interface1::Distributed< step1Local, algorithmFPType, method >::input
InputType input
Definition: kmeans_init_distributed.h:433
daal::algorithms::kmeans::init::interface1::Distributed< step3Master, algorithmFPType, method >
Computes initial clusters for the K-Means algorithm in the 3rd step of the distributed processing mod...
Definition: kmeans_init_distributed.h:768
daal::algorithms::kmeans::init::interface1::DistributedStep5MasterPlusPlusPartialResult
Partial results obtained with the compute() method of the K-Means algorithm in the distributed proces...
Definition: kmeans_init_types.h:1054
daal::algorithms::kmeans::init::interface1::DistributedStep3MasterPlusPlusPartialResult
Partial results obtained with the compute() method of the K-Means algorithm in the distributed proces...
Definition: kmeans_init_types.h:908
daal::algorithms::kmeans::init::interface1::Result
Results obtained with the compute() method that computes initial centroids for the K-Means algorithm ...
Definition: kmeans_init_types.h:450
daal::algorithms::kmeans::init::interface1::Distributed< step1Local, algorithmFPType, method >::Distributed
Distributed(const Distributed< step1Local, algorithmFPType, method > &other)
Definition: kmeans_init_distributed.h:326
daal::algorithms::kmeans::init::interface1::Distributed< step5Master, algorithmFPType, method >
Computes initial clusters for the K-Means algorithm in the 5th step of the distributed processing mod...
Definition: kmeans_init_distributed.h:1031
daal::algorithms::kmeans::init::interface1::Distributed< step1Local, algorithmFPType, method >
Computes initial clusters for the K-Means algorithm in the first step of the distributed processing m...
Definition: kmeans_init_distributed.h:301
daal::algorithms::kmeans::init::interface1::Distributed< step1Local, algorithmFPType, method >::clone
services::SharedPtr< Distributed< step1Local, algorithmFPType, method > > clone() const
Definition: kmeans_init_distributed.h:393
daal::algorithms::kmeans::init::interface1::Parameter
Parameters for computing initial centroids for the K-Means algorithm.
Definition: kmeans_init_types.h:293
daal::algorithms::kmeans::init::interface1::Distributed< step1Local, algorithmFPType, method >::Distributed
Distributed(size_t nClusters, size_t nRowsTotal, size_t offset=0)
Definition: kmeans_init_distributed.h:315
daal::step4Local
Definition: daal_defines.h:146
daal::algorithms::kmeans::init::interface1::DistributedContainer
class DAAL_EXPORT DistributedContainer
Provides methods to run implementations of initialization of the K-Means algorithm. This class is associated with the daal::algorithms::kmeans::init::Distributed class and supports the method of computing initial clusters for the K-Means algorithm in the distributed processing mode.
Definition: kmeans_init_distributed.h:83
daal::algorithms::Analysis
Provides methods for execution of operations over data, such as computation of Summary Statistics est...
Definition: analysis.h:94
daal::algorithms::kmeans::init::interface1::Distributed< step5Master, algorithmFPType, method >::getPartialResult
DistributedStep5MasterPlusPlusPartialResultPtr getPartialResult()
Definition: kmeans_init_distributed.h:1089
daal::algorithms::kmeans::init::interface1::Distributed< step1Local, algorithmFPType, method >::getResult
ResultPtr getResult()
Definition: kmeans_init_distributed.h:342
daal::step1Local
Definition: daal_defines.h:143
daal::step2Master
Definition: daal_defines.h:144
daal::algorithms::kmeans::init::interface1::Distributed< step2Local, algorithmFPType, method >::getPartialResult
DistributedStep2LocalPlusPlusPartialResultPtr getPartialResult()
Definition: kmeans_init_distributed.h:672
daal::algorithms::kmeans::init::interface1::Distributed< step1Local, algorithmFPType, method >::getPartialResult
PartialResultPtr getPartialResult()
Definition: kmeans_init_distributed.h:363
daal::algorithms::kmeans::init::interface1::Distributed< step1Local, algorithmFPType, method >::setResult
services::Status setResult(const ResultPtr &result)
Definition: kmeans_init_distributed.h:351
daal::algorithms::kmeans::init::interface1::Distributed< step5Master, algorithmFPType, method >::setPartialResult
services::Status setPartialResult(const DistributedStep5MasterPlusPlusPartialResultPtr &partialRes)
Definition: kmeans_init_distributed.h:1098
daal::algorithms::kmeans::init::interface1::Distributed< step1Local, algorithmFPType, method >::getMethod
virtual int getMethod() const DAAL_C11_OVERRIDE
Definition: kmeans_init_distributed.h:336
daal::algorithms::kmeans::init::interface1::Distributed< step3Master, algorithmFPType, method >::clone
services::SharedPtr< Distributed< step3Master, algorithmFPType, method > > clone() const
Definition: kmeans_init_distributed.h:834
daal::algorithms::kmeans::init::interface1::Distributed< step5Master, algorithmFPType, method >::clone
services::SharedPtr< Distributed< step5Master, algorithmFPType, method > > clone() const
Definition: kmeans_init_distributed.h:1119
daal::algorithms::kmeans::init::interface1::Distributed< step2Local, algorithmFPType, method >::setPartialResult
services::Status setPartialResult(const DistributedStep2LocalPlusPlusPartialResultPtr &partialRes)
Definition: kmeans_init_distributed.h:681
daal::services::ErrorNullResult
Definition: error_indexes.h:122
daal::algorithms::kmeans::init::data
Definition: kmeans_init_types.h:109
daal::algorithms::kmeans::init::interface1::Distributed< step2Local, algorithmFPType, method >::Distributed
Distributed(size_t nClusters, bool bFirstIteration)
Definition: kmeans_init_distributed.h:647
daal::algorithms::kmeans::init::interface1::DistributedStep4LocalPlusPlusPartialResult
Partial results obtained with the compute() method of the K-Means algorithm in the distributed proces...
Definition: kmeans_init_types.h:993