ee.Classifier.decisionTree
Creates a classifier that applies the given decision tree.
Usage | Returns |
---|
ee.Classifier.decisionTree(treeString) | Classifier |
Argument | Type | Details |
---|
treeString | String | The decision tree, specified in the text format generated by R and other similar tools. |
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 2023-10-06 UTC.
[null,null,["Last updated 2023-10-06 UTC."],[[["Creates a classifier object that can be used for image classification based on a provided decision tree."],["The decision tree must be a string in the format generated by R or similar tools, specifying the classification logic."],["This classifier can be applied to images in Earth Engine to categorize pixels based on the decision tree rules."]]],["This document describes the `ee.Classifier.decisionTree` function, which constructs a classifier from a decision tree. The function takes a single string argument, `treeString`, that represents the decision tree's structure in text format. The `treeString` format is compatible with outputs from R and similar tools. The function returns a classifier that can apply the specified decision tree to new data.\n"]]