ارسال بازخورد
ee.ConfusionMatrix.producersAccuracy
با مجموعهها، منظم بمانید
ذخیره و طبقهبندی محتوا براساس اولویتهای شما.
دقت تولید کننده ماتریس سردرگمی تعریف شده به صورت (درست / کل) برای هر ستون را محاسبه می کند.
استفاده برمی گرداند ConfusionMatrix. producersAccuracy ()
آرایه
استدلال تایپ کنید جزئیات این: confusionMatrix
ConfusionMatrix
نمونه ها ویرایشگر کد (جاوا اسکریپت)
// Construct a confusion matrix from an array (rows are actual values,
// columns are predicted values). We construct a confusion matrix here for
// brevity and clear visualization, in most applications the confusion matrix
// will be generated from ee.Classifier.confusionMatrix.
var array = ee . Array ([[ 32 , 0 , 0 , 0 , 1 , 0 ],
[ 0 , 5 , 0 , 0 , 1 , 0 ],
[ 0 , 0 , 1 , 3 , 0 , 0 ],
[ 0 , 1 , 4 , 26 , 8 , 0 ],
[ 0 , 0 , 0 , 7 , 15 , 0 ],
[ 0 , 0 , 0 , 1 , 0 , 5 ]]);
var confusionMatrix = ee . ConfusionMatrix ( array );
print ( "Constructed confusion matrix" , confusionMatrix );
// Calculate overall accuracy.
print ( "Overall accuracy" , confusionMatrix . accuracy ());
// Calculate consumer's accuracy, also known as user's accuracy or
// specificity and the complement of commission error (1 − commission error).
print ( "Consumer's accuracy" , confusionMatrix . consumersAccuracy ());
// Calculate producer's accuracy, also known as sensitivity and the
// compliment of omission error (1 − omission error).
print ( "Producer's accuracy" , confusionMatrix . producersAccuracy ());
// Calculate kappa statistic.
print ( 'Kappa statistic' , confusionMatrix . kappa ()); راه اندازی پایتون
برای اطلاعات در مورد API پایتون و استفاده از geemap
برای توسعه تعاملی به صفحه محیط پایتون مراجعه کنید.
import ee
import geemap.core as geemap کولب (پایتون)
from pprint import pprint
# Construct a confusion matrix from an array (rows are actual values,
# columns are predicted values). We construct a confusion matrix here for
# brevity and clear visualization, in most applications the confusion matrix
# will be generated from ee.Classifier.confusionMatrix.
array = ee . Array ([[ 32 , 0 , 0 , 0 , 1 , 0 ],
[ 0 , 5 , 0 , 0 , 1 , 0 ],
[ 0 , 0 , 1 , 3 , 0 , 0 ],
[ 0 , 1 , 4 , 26 , 8 , 0 ],
[ 0 , 0 , 0 , 7 , 15 , 0 ],
[ 0 , 0 , 0 , 1 , 0 , 5 ]])
confusion_matrix = ee . ConfusionMatrix ( array )
print ( "Constructed confusion matrix:" )
pprint ( confusion_matrix . getInfo ())
# Calculate overall accuracy.
print ( "Overall accuracy:" , confusion_matrix . accuracy () . getInfo ())
# Calculate consumer's accuracy, also known as user's accuracy or
# specificity and the complement of commission error (1 − commission error).
print ( "Consumer's accuracy:" )
pprint ( confusion_matrix . consumersAccuracy () . getInfo ())
# Calculate producer's accuracy, also known as sensitivity and the
# compliment of omission error (1 − omission error).
print ( "Producer's accuracy:" )
pprint ( confusion_matrix . producersAccuracy () . getInfo ())
# Calculate kappa statistic.
print ( "Kappa statistic:" , confusion_matrix . kappa () . getInfo ())
ارسال بازخورد
جز در مواردی که غیر از این ذکر شده باشد،محتوای این صفحه تحت مجوز Creative Commons Attribution 4.0 License است. نمونه کدها نیز دارای مجوز Apache 2.0 License است. برای اطلاع از جزئیات، به خطمشیهای سایت Google Developers مراجعه کنید. جاوا علامت تجاری ثبتشده Oracle و/یا شرکتهای وابسته به آن است.
تاریخ آخرین بهروزرسانی 2025-07-24 بهوقت ساعت هماهنگ جهانی.
میخواهید موارد بیشتری را با ما درمیان بگذارید؟
[[["درک آسان","easyToUnderstand","thumb-up"],["مشکلم را برطرف کرد","solvedMyProblem","thumb-up"],["غیره","otherUp","thumb-up"]],[["اطلاعاتی که نیاز دارم وجود ندارد","missingTheInformationINeed","thumb-down"],["بیشازحد پیچیده/ مراحل بسیار زیاد","tooComplicatedTooManySteps","thumb-down"],["قدیمی","outOfDate","thumb-down"],["مشکل ترجمه","translationIssue","thumb-down"],["مشکل کد / نمونهها","samplesCodeIssue","thumb-down"],["غیره","otherDown","thumb-down"]],["تاریخ آخرین بهروزرسانی 2025-07-24 بهوقت ساعت هماهنگ جهانی."],[],[]]