ee.Classifier.setOutputMode
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 định dạng đầu ra của một bộ phân loại.
Hãy tham khảo https://developers.google.com/earth-engine/guides/classification để biết danh sách các chế độ được hỗ trợ cho từng thuật toán phân loại.
Cách sử dụng | Giá trị trả về |
---|
Classifier.setOutputMode(mode) | Thuật toán phân loại |
Đối số | Loại | Thông tin chi tiết |
---|
this: classifier | Thuật toán phân loại | Một thuật toán phân loại đầu vào. |
mode | Chuỗi | Chế độ đầu ra. Một trong các trường hợp sau:
- PHÂN LOẠI (mặc định): Kết quả là số lớp.
- REGRESSION (PHÉP BẢN LỆNH): Kết quả là kết quả của phép hồi quy chuẩn.
- PROBABILITY: Kết quả là xác suất phân loại chính xác.
- MULTIPROBABILITY: Kết quả là một mảng các xác suất để mỗi lớp được sắp xếp theo thứ tự chính xác theo các lớp đã thấy.
- RAW: Kết quả là một mảng biểu thị nội bộ của quy trình phân loại. Ví dụ: số phiếu thô trong các mô hình cây nhiều quyết định.
- RAW_REGRESSION: Kết quả là một mảng biểu thị nội bộ của quy trình hồi quy. Ví dụ: dự đoán thô của nhiều cây hồi quy.
|
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-25 UTC.
[null,null,["Cập nhật lần gần đây nhất: 2025-07-25 UTC."],[[["\u003cp\u003eSets the output mode for a classifier, impacting how results are presented.\u003c/p\u003e\n"],["\u003cp\u003eOffers various output modes like CLASSIFICATION, REGRESSION, PROBABILITY, MULTIPROBABILITY, RAW, and RAW_REGRESSION, each providing different data representations.\u003c/p\u003e\n"],["\u003cp\u003eNot all classifiers support every output mode; CLASSIFICATION is the default.\u003c/p\u003e\n"],["\u003cp\u003eThe setOutputMode function takes a string argument representing the desired mode and returns the classifier instance.\u003c/p\u003e\n"]]],[],null,["# ee.Classifier.setOutputMode\n\nSets a classifier's output format.\n\n\u003cbr /\u003e\n\nRefer to https://developers.google.com/earth-engine/guides/classification for a list of supported modes for each classifier.\n\n| Usage | Returns |\n|----------------------------------|------------|\n| Classifier.setOutputMode`(mode)` | Classifier |\n\n| Argument | Type | Details |\n|--------------------|------------|------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| this: `classifier` | Classifier | An input classifier. |\n| `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. |"]]