docstr: The centers for the KMeans model.
  
  :examples:
  
  >>> from h2o.estimators.kmeans import H2OKMeansEstimator
  >>>
  >>> iris = h2o.import_file("https://s3.amazonaws.com/h2o-public-test-data/smalldata/iris/iris_train.csv")
  >>> km = H2OKMeansEstimator(k=3, nfolds=3)
  >>> km.train(x=list(range(4)), training_frame=iris)
  >>> km.centers()
docstr_tok: ["The","centers","for","the","KMeans","model",".",":","examples",":",">",">",">","from","h2o.estimators.kmeans","import","H2OKMeansEstimator",">",">",">",">",">",">","iris","=","h2o.import_file","(","``","https",":","\/\/s3.amazonaws.com\/h2o-public-test-data\/smalldata\/iris\/iris_train.csv","''",")",">",">",">","km","=","H2OKMeansEstimator","(","k=3",",","nfolds=3",")",">",">",">","km.train","(","x=list","(","range","(","4",")",")",",","training_frame=iris",")",">",">",">","km.centers","(",")"]
code: def centers(self):
      """The centers for the KMeans model.
  
      :examples:
  
      >>> from h2o.estimators.kmeans import H2OKMeansEstimator
      >>>
      >>> iris = h2o.import_file("https://s3.amazonaws.com/h2o-public-test-data/smalldata/iris/iris_train.csv")
      >>> km = H2OKMeansEstimator(k=3, nfolds=3)
      >>> km.train(x=list(range(4)), training_frame=iris)
      >>> km.centers()
      """
      o = self._model_json["output"]
      cvals = o["centers"].cell_values
      centers = [list(cval[1:]) for cval in cvals]
      return centers
  
file_path: h2o-3/h2o-py/h2o/model/models/clustering.py
imports: from h2o.utils.compatibility import *
  from h2o.model import ModelBase
label_desc: Use image node_id 8 for calling the H2OClusteringModel obj's underlying member method code with example usage: obj.centers() and returns: centers