ee.ImageCollection.errorMatrix
קל לארגן דפים בעזרת אוספים
אפשר לשמור ולסווג תוכן על סמך ההעדפות שלך.
חישוב מטריצת שגיאות דו-ממדית לאוסף על ידי השוואה בין שתי עמודות באוסף: אחת שמכילה את הערכים בפועל ואחת שמכילה את הערכים החזויים. הערכים צריכים להיות מספרים שלמים קטנים ועוקבים, החל מ-0. ציר 0 (השורות) של המטריצה מתאים לערכים בפועל, וציר 1 (העמודות) מתאים לערכים החזויים.
שימוש | החזרות |
---|
ImageCollection.errorMatrix(actual, predicted, order) | ConfusionMatrix |
ארגומנט | סוג | פרטים |
---|
זה: collection | FeatureCollection | אוסף הקלט. |
actual | מחרוזת | השם של המאפיין שמכיל את הערך בפועל. |
predicted | מחרוזת | שם הנכס שמכיל את הערך החזוי. |
order | רשימה, ברירת מחדל: null | רשימה של הערכים הצפויים. אם לא מציינים את הארגומנט הזה, המערכת מניחה שהערכים רציפים ושהם נעים בטווח שבין 0 ל-maxValue. אם מציינים ערכים, המערכת משתמשת רק בערכים שתואמים לרשימה הזו, והמטריצה תכלול מאפיינים וסדר שתואמים לרשימה הזו. |
אלא אם צוין אחרת, התוכן של דף זה הוא ברישיון Creative Commons Attribution 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. |"]]