ee.ImageCollection.errorMatrix
จัดทุกอย่างให้เป็นระเบียบอยู่เสมอด้วยคอลเล็กชัน
บันทึกและจัดหมวดหมู่เนื้อหาตามค่ากำหนดของคุณ
คำนวณเมทริกซ์ข้อผิดพลาด 2 มิติสำหรับคอลเล็กชันโดยการเปรียบเทียบคอลัมน์ 2 คอลัมน์ของคอลเล็กชัน ได้แก่ คอลัมน์ที่มีค่าจริงและคอลัมน์ที่มีค่าที่คาดการณ์ ค่าควรเป็นจำนวนเต็มที่ต่อเนื่องกันและมีค่าน้อย โดยเริ่มจาก 0 แกน 0 (แถว) ของเมทริกซ์สอดคล้องกับค่าจริง และแกน 1 (คอลัมน์) สอดคล้องกับค่าที่คาดการณ์
การใช้งาน | การคืนสินค้า |
---|
ImageCollection.errorMatrix(actual, predicted, order) | ConfusionMatrix |
อาร์กิวเมนต์ | ประเภท | รายละเอียด |
---|
ดังนี้ collection | FeatureCollection | คอลเล็กชันอินพุต |
actual | สตริง | ชื่อของพร็อพเพอร์ตี้ที่มีค่าจริง |
predicted | สตริง | ชื่อของพร็อพเพอร์ตี้ที่มีค่าที่คาดการณ์ |
order | รายการ (ค่าเริ่มต้น: null) | รายการค่าที่คาดหวัง หากไม่ได้ระบุอาร์กิวเมนต์นี้ ระบบจะถือว่าค่าต่างๆ อยู่ติดกันและครอบคลุมช่วง 0 ถึง maxValue หากระบุไว้ ระบบจะใช้เฉพาะค่าที่ตรงกับรายการนี้ และเมทริกซ์จะมีมิติข้อมูลและลำดับที่ตรงกับรายการนี้ |
เนื้อหาของหน้าเว็บนี้ได้รับอนุญาตภายใต้ใบอนุญาตที่ต้องระบุที่มาของครีเอทีฟคอมมอนส์ 4.0 และตัวอย่างโค้ดได้รับอนุญาตภายใต้ใบอนุญาต Apache 2.0 เว้นแต่จะระบุไว้เป็นอย่างอื่น โปรดดูรายละเอียดที่นโยบายเว็บไซต์ Google Developers Java เป็นเครื่องหมายการค้าจดทะเบียนของ Oracle และ/หรือบริษัทในเครือ
อัปเดตล่าสุด 2025-07-26 UTC
[null,null,["อัปเดตล่าสุด 2025-07-26 UTC"],[[["\u003cp\u003eComputes a 2D error matrix (confusion matrix) by comparing actual and predicted values within a collection.\u003c/p\u003e\n"],["\u003cp\u003eThe matrix is structured with actual values on rows and predicted values on columns, assuming small contiguous integers starting from 0 for both.\u003c/p\u003e\n"],["\u003cp\u003eUsers specify the properties holding actual and predicted values, and optionally, a list of expected values to customize the matrix structure.\u003c/p\u003e\n"]]],["The `errorMatrix` method computes a 2D error matrix (ConfusionMatrix) from a FeatureCollection. It compares 'actual' and 'predicted' value columns. Rows represent actual values, columns represent predicted values. Input values are small, contiguous integers starting from 0. An optional 'order' list defines the expected values, dictating matrix dimensions and order. If 'order' is unspecified values are assumed to be contiguous from 0 to a maximum value. The input collection is a FeatureCollection.\n"],null,["# ee.ImageCollection.errorMatrix\n\nComputes a 2D error matrix for a collection by comparing two columns of a collection: one containing the actual values, and one containing predicted values. The values are expected to be small contiguous integers, starting from 0. Axis 0 (the rows) of the matrix correspond to the actual values, and Axis 1 (the columns) to the predicted values.\n\n\u003cbr /\u003e\n\n| Usage | Returns |\n|-------------------------------------------------------------|-----------------|\n| ImageCollection.errorMatrix`(actual, predicted, `*order*`)` | ConfusionMatrix |\n\n| Argument | Type | Details |\n|--------------------|---------------------|----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| this: `collection` | FeatureCollection | The input collection. |\n| `actual` | String | The name of the property containing the actual value. |\n| `predicted` | String | The name of the property containing the predicted value. |\n| `order` | List, default: null | A list of the expected values. If this argument is not specified, the values are assumed to be contiguous and span the range 0 to maxValue. If specified, only values matching this list are used, and the matrix will have dimensions and order matching this list. |"]]