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.
Usage | Returns | Clusterer.train(features, inputProperties, subsampling, subsamplingSeed) | Clusterer |
Argument | Type | Details | this: clusterer | Clusterer | An input Clusterer. |
features | FeatureCollection | The collection to train on. |
inputProperties | List, default: null | The 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). |
subsampling | Float, default: 1 | An optional subsampling factor, within (0, 1]. |
subsamplingSeed | Integer, default: 0 | A randomization seed to use for subsampling. |
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2024-09-19 UTC.
[null,null,["Last updated 2024-09-19 UTC."],[[["Trains a clusterer using numeric properties of features, ignoring geometry."],["Requires a feature collection and optionally specifies input properties for training."],["Allows for subsampling of the training data using a factor and seed."],["Returns the trained Clusterer object for further use."]]],[]]