ee.ImageCollection.errorMatrix
Mit Sammlungen den Überblick behalten
Sie können Inhalte basierend auf Ihren Einstellungen speichern und kategorisieren.
Berechnet eine zweidimensionale Fehlermatrix für eine Sammlung, indem zwei Spalten einer Sammlung verglichen werden: eine mit den tatsächlichen Werten und eine mit den vorhergesagten Werten. Die Werte sollten kleine, fortlaufende Ganzzahlen sein, die bei 0 beginnen. Achse 0 (die Zeilen) der Matrix entspricht den tatsächlichen Werten und Achse 1 (die Spalten) den vorhergesagten Werten.
Nutzung | Ausgabe |
---|
ImageCollection.errorMatrix(actual, predicted, order) | ConfusionMatrix |
Argument | Typ | Details |
---|
So gehts: collection | FeatureCollection | Die Eingabesammlung. |
actual | String | Der Name des Attributs, das den tatsächlichen Wert enthält. |
predicted | String | Der Name des Attributs, das den vorhergesagten Wert enthält. |
order | Liste, Standard: null | Eine Liste der erwarteten Werte. Wenn dieses Argument nicht angegeben ist, wird davon ausgegangen, dass die Werte fortlaufend sind und den Bereich von 0 bis maxValue abdecken. Wenn angegeben, werden nur Werte verwendet, die mit dieser Liste übereinstimmen. Die Matrix hat dann Dimensionen und eine Reihenfolge, die mit dieser Liste übereinstimmen. |
Sofern nicht anders angegeben, sind die Inhalte dieser Seite unter der Creative Commons Attribution 4.0 License und Codebeispiele unter der Apache 2.0 License lizenziert. Weitere Informationen finden Sie in den Websiterichtlinien von Google Developers. Java ist eine eingetragene Marke von Oracle und/oder seinen Partnern.
Zuletzt aktualisiert: 2025-07-26 (UTC).
[null,null,["Zuletzt aktualisiert: 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. |"]]