ee.Classifier.decisionTree
Sử dụng bộ sưu tập để sắp xếp ngăn nắp các trang
Lưu và phân loại nội dung dựa trên lựa chọn ưu tiên của bạn.
Tạo một trình phân loại áp dụng cây quyết định đã cho.
Cách sử dụng | Giá trị trả về |
---|
ee.Classifier.decisionTree(treeString) | Công cụ phân loại |
Đối số | Loại | Thông tin chi tiết |
---|
treeString | Chuỗi | Cây quyết định, được chỉ định ở định dạng văn bản do R và các công cụ tương tự khác tạo ra. |
Trừ phi có lưu ý khác, nội dung của trang này được cấp phép theo Giấy phép ghi nhận tác giả 4.0 của Creative Commons và các mẫu mã lập trình được cấp phép theo Giấy phép Apache 2.0. Để biết thông tin chi tiết, vui lòng tham khảo Chính sách trang web của Google Developers. Java là nhãn hiệu đã đăng ký của Oracle và/hoặc các đơn vị liên kết với Oracle.
Cập nhật lần gần đây nhất: 2025-07-26 UTC.
[null,null,["Cập nhật lần gần đây nhất: 2025-07-26 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,["# 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. |"]]