Clusters are calculated according to a distance measure between the instances (see calculation methods here). Each cluster is represented by a centroid. Centroids are computed by using the mean for numeric fields and the mode for categorical fields. For text and items fields, BigML selects the values that minimize the average cosine distance between the centroid and the points in its neighborhood.