Announcement: On
November 13, 2024, all users will need to
use a Cloud project in order to access Earth Engine. After this date, continued individual access without a Cloud project will require
an exception.
ee.Classifier.setOutputMode
Sets the output mode.
Usage | Returns | Classifier.setOutputMode(mode) | Classifier |
Argument | Type | Details | this: classifier | Classifier | An input classifier. |
mode | String | The 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.
Not all classifiers support modes other than CLASSIFICATION. |
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."],[[["This method sets the output mode for a classifier, controlling the type of result returned during classification."],["Output modes include options like classification (default), regression, probability, multiprobability, raw, and raw regression, each offering different information about the classification process."],["Not all classifiers support all output modes, so refer to specific classifier documentation for details."]]],[]]