ee.Classifier.setOutputMode
Zadbaj o dobrą organizację dzięki kolekcji
Zapisuj i kategoryzuj treści zgodnie ze swoimi preferencjami.
Ustawia format wyjściowy klasyfikatora.
Listę obsługiwanych trybów dla każdego klasyfikatora znajdziesz na stronie https://developers.google.com/earth-engine/guides/classification.
Wykorzystanie | Zwroty |
---|
Classifier.setOutputMode(mode) | Klasyfikator |
Argument | Typ | Szczegóły |
---|
to: classifier | Klasyfikator | Klasyfikator danych wejściowych. |
mode | Ciąg znaków | Tryb wyjścia. Jedna z tych opcji: - CLASSIFICATION (domyślnie): wyjściem jest numer klasy.
- REGRESSJA: wyjście to wynik standardowej regresji.
- PROBABILITY: (Prawdopodobieństwo) – dane wyjściowe to prawdopodobieństwo, że klasyfikacja jest prawidłowa.
- MULTIPROBABILITY: dane wyjściowe to tablica prawdopodobieństw, że każda klasa jest prawidłowa, posortowana według kolejności wyświetlania klas.
- RAW: dane wyjściowe to tablica wewnętrznego zapisu procesu klasyfikacji. Na przykład nieprzetworzone głosy w modelach drzewa decyzyjnego wielopoziomowego.
- RAW_REGRESSION: dane wyjściowe to tablica wewnętrznej reprezentacji procesu regresji. Mogą to być na przykład prognozy nieprzetworzone z wielu drzew regresji.
|
O ile nie stwierdzono inaczej, treść tej strony jest objęta licencją Creative Commons – uznanie autorstwa 4.0, a fragmenty kodu są dostępne na licencji Apache 2.0. Szczegółowe informacje na ten temat zawierają zasady dotyczące witryny Google Developers. Java jest zastrzeżonym znakiem towarowym firmy Oracle i jej podmiotów stowarzyszonych.
Ostatnia aktualizacja: 2025-07-25 UTC.
[null,null,["Ostatnia aktualizacja: 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. |"]]