公告:凡是在
2025 年 4 月 15 日前註冊使用 Earth Engine 的非商業專案,都必須
驗證非商業用途資格,才能繼續存取 Earth Engine。
ee.Classifier.decisionTree
透過集合功能整理內容
你可以依據偏好儲存及分類內容。
建立套用指定決策樹的分類器。
用量 | 傳回 |
---|
ee.Classifier.decisionTree(treeString) | 分類器 |
引數 | 類型 | 詳細資料 |
---|
treeString | 字串 | 決策樹,以 R 和其他類似工具產生的文字格式指定。 |
除非另有註明,否則本頁面中的內容是採用創用 CC 姓名標示 4.0 授權,程式碼範例則為阿帕契 2.0 授權。詳情請參閱《Google Developers 網站政策》。Java 是 Oracle 和/或其關聯企業的註冊商標。
上次更新時間:2025-07-26 (世界標準時間)。
[null,null,["上次更新時間:2025-07-26 (世界標準時間)。"],[[["\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,["# ee.Classifier.decisionTree\n\nCreates 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. |"]]