class_docstr: K-means
  
  Performs k-means clustering on an H2O dataset.
class_docstr_tok: ["K-means","Performs","k-means","clustering","on","an","H2O","dataset","."]
docstr: Cross-validation fold assignment scheme, if fold_column is not specified. The 'Stratified' option will stratify
  the folds based on the response variable, for classification problems.
  
  Type: ``Literal["auto", "random", "modulo", "stratified"]``, defaults to ``"auto"``.
  
  :examples:
  
  >>> ozone = h2o.import_file("http://s3.amazonaws.com/h2o-public-test-data/smalldata/glm_test/ozone.csv")
  >>> predictors = ["radiation","temperature","wind"]
  >>> train, valid = ozone.split_frame(ratios=[.8], seed=1234)
  >>> ozone_km = H2OKMeansEstimator(fold_assignment="Random",
  ...                               nfolds=5,
  ...                               seed=1234)
  >>> ozone_km.train(x=predictors,
  ...                training_frame=train,
  ...                validation_frame=valid)
  >>> ozone_km.scoring_history()
docstr_tok: ["Cross-validation","fold","assignment","scheme",",","if","fold_column","is","not","specified",".","The","'Stratified","'","option","will","stratify","the","folds","based","on","the","response","variable",",","for","classification","problems",".","Type",":","``","Literal","[","``","auto","''",",","``","random","''",",","``","modulo","''",",","``","stratified","''","]","``",",","defaults","to","``","``","auto","''","``",".",":","examples",":",">",">",">","ozone","=","h2o.import_file","(","``","http",":","\/\/s3.amazonaws.com\/h2o-public-test-data\/smalldata\/glm_test\/ozone.csv","''",")",">",">",">","predictors","=","[","``","radiation","''",",","''","temperature","''",",","''","wind","''","]",">",">",">","train",",","valid","=","ozone.split_frame","(","ratios=","[",".8","]",",","seed=1234",")",">",">",">","ozone_km","=","H2OKMeansEstimator","(","fold_assignment=","''","Random","''",",","...","nfolds=5",",","...","seed=1234",")",">",">",">","ozone_km.train","(","x=predictors",",","...","training_frame=train",",","...","validation_frame=valid",")",">",">",">","ozone_km.scoring_history","(",")"]
code: def fold_assignment(self):
      """
      Cross-validation fold assignment scheme, if fold_column is not specified. The 'Stratified' option will stratify
      the folds based on the response variable, for classification problems.
  
      Type: ``Literal["auto", "random", "modulo", "stratified"]``, defaults to ``"auto"``.
  
      :examples:
  
      >>> ozone = h2o.import_file("http://s3.amazonaws.com/h2o-public-test-data/smalldata/glm_test/ozone.csv")
      >>> predictors = ["radiation","temperature","wind"]
      >>> train, valid = ozone.split_frame(ratios=[.8], seed=1234)
      >>> ozone_km = H2OKMeansEstimator(fold_assignment="Random",
      ...                               nfolds=5,
      ...                               seed=1234)
      >>> ozone_km.train(x=predictors,
      ...                training_frame=train,
      ...                validation_frame=valid)
      >>> ozone_km.scoring_history()
      """
      return self._parms.get("fold_assignment")
  
imports: from h2o.estimators.estimator_base import H2OEstimator
  from h2o.exceptions import H2OValueError
  from h2o.frame import H2OFrame
  from h2o.utils.typechecks import assert_is_type, Enum, numeric
label_desc: Use image node_id 14 for calling the H2OKMeansEstimator obj's underlying member method code with example usage: obj.fold_assignment() and returns: self