Pengumuman: Semua project nonkomersial yang terdaftar untuk menggunakan Earth Engine sebelum
15 April 2025 harus
memverifikasi kelayakan nonkomersial untuk mempertahankan akses Earth Engine.
ee.Classifier.setOutputMode
Tetap teratur dengan koleksi
Simpan dan kategorikan konten berdasarkan preferensi Anda.
Menetapkan format output pengklasifikasi.
Lihat https://developers.google.com/earth-engine/guides/classification untuk mengetahui daftar mode yang didukung untuk setiap pengklasifikasi.
Penggunaan | Hasil |
---|
Classifier.setOutputMode(mode) | Pengklasifikasi |
Argumen | Jenis | Detail |
---|
ini: classifier | Pengklasifikasi | Pengklasifikasi input. |
mode | String | Mode output. Salah satu dari:
- CLASSIFICATION (default): Output-nya adalah nomor class.
- REGRESSION: Output adalah hasil regresi standar.
- PROBABILITY: Output-nya adalah probabilitas bahwa klasifikasi tersebut benar.
- MULTIPROBABILITY: Outputnya adalah array probabilitas bahwa setiap class benar dan diurutkan berdasarkan class yang dilihat.
- RAW: Outputnya adalah array representasi internal proses klasifikasi. Misalnya, suara mentah dalam model pohon keputusan multi-level.
- RAW_REGRESSION: Outputnya adalah array representasi internal dari proses regresi. Misalnya, prediksi mentah dari beberapa pohon regresi.
|
Kecuali dinyatakan lain, konten di halaman ini dilisensikan berdasarkan Lisensi Creative Commons Attribution 4.0, sedangkan contoh kode dilisensikan berdasarkan Lisensi Apache 2.0. Untuk mengetahui informasi selengkapnya, lihat Kebijakan Situs Google Developers. Java adalah merek dagang terdaftar dari Oracle dan/atau afiliasinya.
Terakhir diperbarui pada 2025-07-25 UTC.
[null,null,["Terakhir diperbarui pada 2025-07-25 UTC."],[[["\u003cp\u003eSets the output mode for a classifier, impacting how results are presented.\u003c/p\u003e\n"],["\u003cp\u003eOffers various output modes like CLASSIFICATION, REGRESSION, PROBABILITY, MULTIPROBABILITY, RAW, and RAW_REGRESSION, each providing different data representations.\u003c/p\u003e\n"],["\u003cp\u003eNot all classifiers support every output mode; CLASSIFICATION is the default.\u003c/p\u003e\n"],["\u003cp\u003eThe setOutputMode function takes a string argument representing the desired mode and returns the classifier instance.\u003c/p\u003e\n"]]],[],null,["# ee.Classifier.setOutputMode\n\nSets a classifier's output format.\n\n\u003cbr /\u003e\n\nRefer to https://developers.google.com/earth-engine/guides/classification for a list of supported modes for each classifier.\n\n| Usage | Returns |\n|----------------------------------|------------|\n| Classifier.setOutputMode`(mode)` | Classifier |\n\n| Argument | Type | Details |\n|--------------------|------------|------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| this: `classifier` | Classifier | An input classifier. |\n| `mode` | String | The output mode. One of: - CLASSIFICATION (default): The output is the class number. - REGRESSION: The output is the result of standard regression. - PROBABILITY: The output is the probability that the classification is correct. - MULTIPROBABILITY: The output is an array of probabilities that each class is correct ordered by classes seen. - RAW: The output is an array of the internal representation of the classification process. For example, the raw votes in multi-decision tree models. - RAW_REGRESSION: The output is an array of the internal representation of the regression process. For example, the raw predictions of multiple regression trees. |"]]