公告:凡是在 
2025 年 4 月 15 日前註冊使用 Earth Engine 的非商業專案,都必須
驗證非商業用途資格,才能繼續存取。如未在 2025 年 9 月 26 日前完成驗證,存取權可能會暫停。
  
        
 
       
     
  
  
  
    
  
  
  
    
      ee.ImageCollection.errorMatrix
    
    
      
    
    
      
      透過集合功能整理內容
    
    
      
      你可以依據偏好儲存及分類內容。
    
  
  
      
    
  
  
  
  
  
    
  
  
    
    
    
  
  
比較集合的兩個資料欄,計算集合的 2D 錯誤矩陣:一個資料欄包含實際值,另一個資料欄包含預測值。這些值應為從 0 開始的連續整數。矩陣的軸 0 (資料列) 對應實際值,軸 1 (資料欄) 則對應預測值。
| 用量 | 傳回 | 
|---|
| ImageCollection.errorMatrix(actual, predicted, order) | ConfusionMatrix | 
| 引數 | 類型 | 詳細資料 | 
|---|
| 這個: collection | FeatureCollection | 輸入集合。 | 
| actual | 字串 | 包含實際值的屬性名稱。 | 
| predicted | 字串 | 包含預測值的屬性名稱。 | 
| order | 清單,預設值為空值 | 預期值清單。如未指定這個引數,系統會假設值是連續的,且範圍介於 0 到 maxValue 之間。如果指定,系統只會使用符合這個清單的值,且矩陣的維度和順序會與這個清單相符。 | 
  
  
  
  
  
除非另有註明,否則本頁面中的內容是採用創用 CC 姓名標示 4.0 授權,程式碼範例則為阿帕契 2.0 授權。詳情請參閱《Google Developers 網站政策》。Java 是 Oracle 和/或其關聯企業的註冊商標。
  上次更新時間:2025-07-26 (世界標準時間)。
  
  
  
    
      [null,null,["上次更新時間:2025-07-26 (世界標準時間)。"],[],["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"]]