ee.Classifier.setOutputMode
קל לארגן דפים בעזרת אוספים
אפשר לשמור ולסווג תוכן על סמך ההעדפות שלך.
הגדרת פורמט הפלט של הסיווג.
רשימה של המצבים הנתמכים לכל סיווג מופיעה בכתובת https://developers.google.com/earth-engine/guides/classification.
שימוש | החזרות |
---|
Classifier.setOutputMode(mode) | מסווג |
ארגומנט | סוג | פרטים |
---|
זה: classifier | מסווג | מסווג קלט. |
mode | מחרוזת | מצב הפלט. אחת מהאפשרויות הבאות:
- CLASSIFICATION (ברירת המחדל): הפלט הוא מספר הכיתה.
- REGRESSION: הפלט הוא תוצאה של רגרסיה רגילה.
- PROBABILITY: הפלט הוא ההסתברות שהסיווג נכון.
- MULTIPROBABILITY: הפלט הוא מערך של הסתברויות לכך שכל מחלקה נכונה, לפי סדר המחלקות שנצפו.
- RAW: הפלט הוא מערך של הייצוג הפנימי של תהליך הסיווג. לדוגמה, הקולות הגולמיים במודלים של עצי החלטות מרובים.
- RAW_REGRESSION: הפלט הוא מערך של הייצוג הפנימי של תהליך הרגרסיה. לדוגמה, התחזיות הגולמיות של עצי רגרסיה מרובים.
|
אלא אם צוין אחרת, התוכן של דף זה הוא ברישיון Creative Commons Attribution 4.0 ודוגמאות הקוד הן ברישיון Apache 2.0. לפרטים, ניתן לעיין במדיניות האתר Google Developers. Java הוא סימן מסחרי רשום של חברת Oracle ו/או של השותפים העצמאיים שלה.
עדכון אחרון: 2025-07-25 (שעון UTC).
[null,null,["עדכון אחרון: 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. |"]]