ee.Classifier.setOutputMode

Sets a classifier's output format.

Refer to https://developers.google.com/earth-engine/guides/classification for a list of supported modes for each classifier.

UsageReturns
Classifier.setOutputMode(mode)Classifier
ArgumentTypeDetails
this: classifierClassifierAn input classifier.
modeStringThe output mode. One of:
  • CLASSIFICATION (default): The output is the class number.
  • REGRESSION: The output is the result of standard regression.
  • PROBABILITY: The output is the probability that the classification is correct.
  • MULTIPROBABILITY: The output is an array of probabilities that each class is correct ordered by classes seen.
  • RAW: The output is an array of the internal representation of the classification process. For example, the raw votes in multi-decision tree models.
  • RAW_REGRESSION: The output is an array of the internal representation of the regression process. For example, the raw predictions of multiple regression trees.