Announcement: All noncommercial projects registered to use Earth Engine before April 15, 2025 must verify noncommercial eligibility to maintain Earth Engine access.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2023-10-06 UTC."],[[["\u003cp\u003eCreates a classifier object that can be used for image classification based on a provided decision tree.\u003c/p\u003e\n"],["\u003cp\u003eThe decision tree must be a string in the format generated by R or similar tools, specifying the classification logic.\u003c/p\u003e\n"],["\u003cp\u003eThis classifier can be applied to images in Earth Engine to categorize pixels based on the decision tree rules.\u003c/p\u003e\n"]]],["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"],null,["Creates a classifier that applies the given decision tree.\n\n\u003cbr /\u003e\n\n| Usage | Returns |\n|------------------------------------------|------------|\n| `ee.Classifier.decisionTree(treeString)` | Classifier |\n\n| Argument | Type | Details |\n|--------------|--------|-----------------------------------------------------------------------------------------|\n| `treeString` | String | The decision tree, specified in the text format generated by R and other similar tools. |"]]