Precision وRecall وF1 وROC-AUC
تجاوز الدقة للتقييم الواقعي
Precision وRecall وF1 وROC-AUC درس مجاني في Deep Learning Academy على CoddyKit. هذا هو الدرس 1 من أصل 4. يمكنك قراءة الدرس كاملاً أدناه مجاناً — ثم تمرن عليه مباشرة في المتصفح باستخدام محرر أكواد مدمج ومدرس ذكاء اصطناعي متاح 24/7. هذا الدرس جزء من مسار التعلم في Deep Learning Academy، وتقدمك يتزامن عبر الويب وتطبيق CoddyKit. تتضمن دورة Deep Learning Academy 4 دروس في المجموع.
بعض أجزاء هذا الدرس لم تُترجم بعد وتظهر باللغة الإنجليزية.
Accuracy Can Lie
When one class dominates, accuracy looks great even for a useless model. You need sharper metrics to judge real performance.
The Four Outcomes
Every prediction is a true positive, true negative, false positive, or false negative. These four counts power every richer metric.
Precision: Trust the Positives
Precision asks: of everything you flagged positive, how many truly were? High precision means few false alarms.
precision = tp / (tp + fp)Recall: Catch Them All
Recall asks: of all the real positives, how many did you catch? High recall means few missed cases.
recall = tp / (tp + fn)The Tradeoff
Push precision up and recall often drops, and the reverse. The right balance depends on the cost of each kind of mistake.
F1: One Balanced Score
The F1 score is the harmonic mean of precision and recall. It rewards models that keep both reasonably high.
f1 = 2 * p * r / (p + r)Thresholds Move the Line
A classifier outputs a probability; the threshold decides positive versus negative. Sliding it reshapes precision and recall.
The ROC Curve
The ROC curve plots true positive rate against false positive rate across every threshold, showing the full tradeoff at a glance.
ROC-AUC in One Number
ROC-AUC is the area under that curve. It captures ranking quality with one threshold-free number from zero to one.
from sklearn.metrics import roc_auc_scoreReading AUC Values
An AUC of 0.5 is random guessing, while 1.0 is perfect separation. Higher means the model ranks positives above negatives well.
Pick the Metric That Fits
Choose your metric by the task: recall for disease screening, precision for spam filters, AUC for ranking quality.
Quick Check
Think about which metric counts how many real positives you successfully caught.
Recap
Go beyond accuracy with precision, recall, F1, and ROC-AUC. Each answers a different question, so match the metric to your goal. 🎯
تعلم Python مع معلم ذكاء اصطناعي — مجانًا
اكتب وقم بتشغيل أكوادك الفعلية في المتصفح، واحصل على مساعدة فورية من معلم ذكاء اصطناعي متاح 24/7، واستمر من حيث توقفت على الويب أو في التطبيق.
- الدورات
- 30
- الدروس
- 120
الأسئلة الشائعة
هل درس «Precision وRecall وF1 وROC-AUC» مجاني؟
نعم — نص درس «Precision وRecall وF1 وROC-AUC» كامل متاح مجاناً هنا على الويب. لتمرينه بشكل تفاعلي (محرر أكواد مدمج ومدرس ذكاء اصطناعي متاح 24/7) وفتح باقي دورة Deep Learning Academy، انتقل إلى CoddyKit PRO. تتضمن دورة Deep Learning Academy 4 دروس في المجموع.
ماذا ستتعلم في «Precision وRecall وF1 وROC-AUC»؟
تجاوز الدقة للتقييم الواقعي تتمرن على Deep Learning Academy مع أكواد عملية تشغلها مباشرة في المتصفح، ومدرس ذكاء اصطناعي متاح 24/7 يجيب على أسئلتك أثناء عملك.
هل أحتاج إلى خبرة سابقة لأبدأ Deep Learning Academy؟
لا تُشترط خبرة سابقة. Deep Learning Academy على CoddyKit منظم للمبتدئين حتى المتقدمين، لذا يمكنك البدء من هنا أو من البداية والتقدم بسرعتك الخاصة. هذا هو الدرس 1 من أصل 4.
كم من الوقت يستغرق درس «Precision وRecall وF1 وROC-AUC»؟
معظم دروس CoddyKit تستغرق حوالي 5–10 دقائق. كل منها موجز وتفاعلي، لذا تحرز تقدماً مستمراً وتستأنف من حيث توقفت عبر الويب والتطبيق.
هل يمكنني كتابة وتشغيل أكواد في درس Deep Learning Academy هذا؟
نعم. كل درس في Deep Learning Academy يتضمن محرر أكواد مدمج، لذا تكتب وتشغل أكواداً حقيقية مباشرة في متصفحك وتحصل على تعليقات فورية من الذكاء الاصطناعي — بدون إعداد محلي.
جميع الدروس في هذه الدورة
- Precision وRecall وF1 وROC-AUC
- مصفوفات الالتباس وتحليل الأخطاء
- Grad-CAM: انظر إلى ما يركّز عليه النموذج
- معايرة الثقة