htmd.projections.kmeanstri module#
- class htmd.projections.kmeanstri.KMeansTri(data)#
Bases:
object
Class for calculating the Kmeans-triangle projections of a MetricData object
- Parameters:
data (
MetricData
object) – The object whose data we wish to project.
Example
>>> tri = KMeansTri(data) >>> dataproj = tri.project(50)
- project(ndim=None)#
Projects the data object given to the constructor onto ndim dimensions
- Parameters:
ndim (int) – The number of dimensions we want to project the data on.
- Returns:
dataTica – A new
MetricData
object containing the projected data- Return type:
MetricData
object
Example
>>> tri = KMeansTri(data) >>> datatri = tri.project(5)