お知らせ:
2025 年 4 月 15 日より前に Earth Engine の使用を登録したすべての非商用プロジェクトは、Earth Engine へのアクセスを維持するために
非商用目的での利用資格を確認する必要があります。
ee.ImageCollection.errorMatrix
コレクションでコンテンツを整理
必要に応じて、コンテンツの保存と分類を行います。
コレクションの 2 つの列(実際の値を含む列と予測値を含む列)を比較して、コレクションの 2D エラー行列を計算します。値は 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. |"]]