ee.ImageCollection.errorMatrix
Computes 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.
Usage | Returns |
---|
ImageCollection.errorMatrix(actual, predicted, order) | ConfusionMatrix |
Argument | Type | Details |
---|
this: collection | FeatureCollection | The input collection. |
actual | String | The name of the property containing the actual value. |
predicted | String | The name of the property containing the predicted value. |
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. |
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2024-09-19 UTC.
[null,null,["Last updated 2024-09-19 UTC."],[[["Computes a 2D error matrix (confusion matrix) by comparing actual and predicted values within a collection."],["The matrix is structured with actual values on rows and predicted values on columns, assuming small contiguous integers starting from 0 for both."],["Users specify the properties holding actual and predicted values, and optionally, a list of expected values to customize the matrix structure."]]],["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"]]