ee.Classifier.train

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

UsageReturns
Classifier.train(features, classProperty, inputProperties, subsampling, subsamplingSeed)Classifier
ArgumentTypeDetails
this: classifierClassifier

An input classifier.

featuresFeatureCollection

The collection to train on.

classPropertyString

The name of the property containing the class value. Each feature must have this property, and its value must be numeric.

inputPropertiesList, 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).

subsamplingFloat, default: 1

An optional subsampling factor, within (0, 1].

subsamplingSeedInteger, default: 0

A randomization seed to use for subsampling.

Examples

JavaScript

// Your example goes here!

Python

# Your example goes here!