The collection of cluster medoids that embodies the model
The metric function over data elements asumed by the model
Return the model cost with respect to the given data
Return the model cost with respect to the given data
Model cost is defined as the sum of closest-distances over the data elements
The input data to compute the cost over
If true, compute cost normalized by number of data elements. Defaults to false.
The sum of closest-distances over the data elements
Return the model cost with respect to the given data
Return the model cost with respect to the given data
Model cost is defined as the sum of closest-distances over the data elements
The input data to compute the cost over
If true, compute cost normalized by number of data elements. Defaults to false.
The sum of closest-distances over the data elements
The model distance function: maps an element to its distance to the closest medoid
The number of medoids in the model
The collection of cluster medoids that embodies the model
The metric function over data elements asumed by the model
Return an RDD produced by predicting the closest medoid to each row
Return an RDD produced by predicting the closest medoid to each row
An RDD whose rows are elements of the data space
An RDD whose rows are the corresponding indices of the closest medoids
Return the index of the medoid closest to the input
Return the index of the medoid closest to the input
An element of the data space
The index of the medoid closest to the input
Extracts a data object and a tag value from another data structure, and returns the index of closest cluster, paired with the tag value
Extracts a data object and a tag value from another data structure, and returns the index of closest cluster, paired with the tag value
An object containing a data point and an associated tag value
Function to extract data point and the tag value from 'obj'
A pair value (j, v) where (j) is index of closest cluster and (v) is the associated tag value
Returns the index of closest cluster, paired with corresponding distance
Returns the index of closest cluster, paired with corresponding distance
A data object
Pair (j, d) with (j) the closest cluster index and (d) the corresponding distance
Extracts a data object and a tag value from another data structure, and returns the index of closest cluster, with the corresponding distance and associated tag value
Extracts a data object and a tag value from another data structure, and returns the index of closest cluster, with the corresponding distance and associated tag value
An object containing a data point and an associated tag value
Function to extract data point and tag value from 'obj'
A tuple (j, d, v) where (j) is index of closest cluster, (d) is corresponding distance, and (v) is the associated tag value
The model prediction function: maps an element to the index of the closest medoid
Returns index of closest medoid, paired with its distance to that medoid
Represents a K-Medoids clustering model