Announcement: All noncommercial projects registered to use Earth Engine beforeApril 15, 2025 mustverify noncommercial eligibility to maintain access. If you have not verified by September 26, 2025, your access may be on hold.

ee.Clusterer.train

Trains the Clusterer on a collection of features using the specified numeric properties of each feature as training data. The geometry of the features is ignored.

UsageReturns
Clusterer.train(features,inputProperties,subsampling,subsamplingSeed)Clusterer
ArgumentTypeDetails
this:clustererClustererAn input Clusterer.
featuresFeatureCollectionThe collection to train on.
inputPropertiesList, default: nullThe list of property names to include as training data. Each feature must have all these properties, and their values must be numeric. This argument is optional if the input collection contains a 'band_order' property (as produced by Image.sample).
subsamplingFloat, default: 1An optional subsampling factor, within (0, 1].
subsamplingSeedInteger, default: 0A randomization seed to use for subsampling.

Except as otherwise noted, the content of this page is licensed under theCreative Commons Attribution 4.0 License, and code samples are licensed under theApache 2.0 License. For details, see theGoogle Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.

Last updated 2024-09-19 UTC.