GPUdb C++ API
Version 6.2.0.3
|
A set of output parameters for aggregateKMeans(const AggregateKMeansRequest&) const. More...
#include <gpudb/protocol/aggregate_k_means.h>
Public Member Functions | |
AggregateKMeansResponse () | |
Constructs an AggregateKMeansResponse object with default parameter values. More... | |
Public Attributes | |
std::vector< std::vector< double > > | means |
std::vector< int64_t > | counts |
std::vector< double > | rmsDists |
int64_t | count |
double | rmsDist |
double | tolerance |
int32_t | numIters |
A set of output parameters for aggregateKMeans(const AggregateKMeansRequest&) const.
This endpoint runs the k-means algorithm - a heuristic algorithm that attempts to do k-means clustering. An ideal k-means clustering algorithm selects k points such that the sum of the mean squared distances of each member of the set to the nearest of the k points is minimized. The k-means algorithm however does not necessarily produce such an ideal cluster. It begins with a randomly selected set of k points and then refines the location of the points iteratively and settles to a local minimum. Various parameters and options are provided to control the heuristic search.
NOTE: The Kinetica instance being accessed must be running a CUDA (GPU-based) build to service this request.
Definition at line 177 of file aggregate_k_means.h.
|
inline |
Constructs an AggregateKMeansResponse object with default parameter values.
Definition at line 184 of file aggregate_k_means.h.
int64_t gpudb::AggregateKMeansResponse::count |
Definition at line 198 of file aggregate_k_means.h.
std::vector<int64_t> gpudb::AggregateKMeansResponse::counts |
Definition at line 196 of file aggregate_k_means.h.
std::vector<std::vector<double> > gpudb::AggregateKMeansResponse::means |
Definition at line 195 of file aggregate_k_means.h.
int32_t gpudb::AggregateKMeansResponse::numIters |
Definition at line 201 of file aggregate_k_means.h.
double gpudb::AggregateKMeansResponse::rmsDist |
Definition at line 199 of file aggregate_k_means.h.
std::vector<double> gpudb::AggregateKMeansResponse::rmsDists |
Definition at line 197 of file aggregate_k_means.h.
double gpudb::AggregateKMeansResponse::tolerance |
Definition at line 200 of file aggregate_k_means.h.