Announcement: All noncommercial projects registered to use Earth Engine before
April 15, 2025 must
verify noncommercial eligibility to maintain Earth Engine access.
ee.ConfusionMatrix.fscore
Stay organized with collections
Save and categorize content based on your preferences.
Computes the Fβ-score for the confusion matrix.
Usage | Returns | ConfusionMatrix.fscore(beta) | Array |
Argument | Type | Details | this: confusionMatrix | ConfusionMatrix | |
beta | Float, default: 1 | A factor indicating how much more important recall is than precision. The standard F-score is equivalent to setting β to one. |
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 2023-10-06 UTC.
[null,null,["Last updated 2023-10-06 UTC."],[[["\u003cp\u003eCalculates the Fβ-score, a measure combining precision and recall, from a confusion matrix.\u003c/p\u003e\n"],["\u003cp\u003eAllows customization of the score through a \u003ccode\u003ebeta\u003c/code\u003e parameter, weighing the importance of recall relative to precision.\u003c/p\u003e\n"],["\u003cp\u003eProvides flexibility by accepting the confusion matrix as input and returning the Fβ-score as an array.\u003c/p\u003e\n"]]],["The `fscore` function calculates the Fβ-score for a given confusion matrix. It accepts a `beta` argument, a float value defaulting to 1, which determines the relative importance of recall versus precision. A higher `beta` emphasizes recall. The function operates on a `ConfusionMatrix` object and returns an array containing the computed Fβ-score. The standard F-score is calculated when β is set to one.\n"],null,["# ee.ConfusionMatrix.fscore\n\nComputes the Fβ-score for the confusion matrix.\n\n\u003cbr /\u003e\n\n| Usage | Returns |\n|------------------------------------|---------|\n| ConfusionMatrix.fscore`(`*beta*`)` | Array |\n\n| Argument | Type | Details |\n|-------------------------|-------------------|-------------------------------------------------------------------------------------------------------------------------------|\n| this: `confusionMatrix` | ConfusionMatrix | |\n| `beta` | Float, default: 1 | A factor indicating how much more important recall is than precision. The standard F-score is equivalent to setting β to one. |"]]