{"id":10052,"date":"2026-11-27T12:16:39","date_gmt":"2026-11-27T06:46:39","guid":{"rendered":"https:\/\/www.tisatech.in\/blog\/?p=10052"},"modified":"2026-11-27T12:16:40","modified_gmt":"2026-11-27T06:46:40","slug":"precision-and-recall-explained","status":"publish","type":"post","link":"https:\/\/www.tisatech.in\/blog\/precision-and-recall-explained\/","title":{"rendered":"Machine Learning Evaluation Metrics: Precision and Recall Explained with Accuracy and F1"},"content":{"rendered":"\n<p>A Jaipur shopkeeper receiving a \u20b92,000 payment may rely on a fraud detection model to assess risk using transaction details, device and location.<\/p>\n\n\n\n<p>The need for checks is clear. The <a href=\"https:\/\/rbi.org.in\/\" target=\"_blank\" rel=\"noreferrer noopener nofollow\">RBI reported 28 lakh digital payment frauds worth \u20b922,931 crore in India<\/a> in 2025, up from 24 lakh cases in 2024.<\/p>\n\n\n\n<p>But detecting fraud is not enough. Imagine a model that marks every payment as safe. It catches no fraud, yet achieves 98% accuracy if only 2% of transactions are fraudulent. This shows why accuracy alone cannot measure a model&#8217;s usefulness.<\/p>\n\n\n\n<p><strong>How do you know whether a model works?<\/strong> Ask two questions: How many real frauds did it catch, and how many genuine customers did it flag by mistake? These questions introduce precision and recall. This guide explains both metrics through a fraud detection example and shows when to use each.<\/p>\n\n\n\n<style>\n\n\/* =========================================\n\n   WHATSAPP DEMO BANNER\n\n========================================= *\/\n \n.tisa-whatsapp-demo {\n\n    position: relative !important;\n\n    width: 100% !important;\n\n    height: 76px !important;\n\n    box-sizing: border-box !important;\n\n    background: linear-gradient(135deg, #ffffff 0%, #f5fff8 100%) !important;\n\n    border: 2px solid #25D366 !important;\n\n    border-radius: 16px !important;\n\n    margin: 28px 0 !important;\n\n    padding: 0 160px 0 94px !important;\n\n    font-family: Arial, sans-serif !important;\n\n    box-shadow: 0 8px 25px rgba(37, 211, 102, 0.10) !important;\n\n}\n \n.tisa-whatsapp-icon {\n\n    position: absolute !important;\n\n    left: 24px !important;\n\n    top: 50% !important;\n\n    transform: translateY(-50%) !important;\n\n    width: 42px !important;\n\n    height: 42px !important;\n\n    border-radius: 50% !important;\n\n    background: #e9fff1 !important;\n\n    display: flex !important;\n\n    align-items: center !important;\n\n    justify-content: center !important;\n\n}\n \n.tisa-whatsapp-icon img {\n\n    display: block !important;\n\n    width: 24px !important;\n\n    height: 24px !important;\n\n    margin: 0 !important;\n\n    padding: 0 !important;\n\n}\n \n.tisa-whatsapp-text {\n\n    position: absolute !important;\n\n    left: 78px !important;\n\n    top: 50% !important;\n\n    transform: translateY(-50%) !important;\n\n    color: #202020 !important;\n\n    font-size: 16px !important;\n\n    line-height: 1 !important;\n\n    font-weight: 700 !important;\n\n    white-space: nowrap !important;\n\n}\n \n.tisa-whatsapp-button {\n\n    position: absolute !important;\n\n    right: 16px !important;\n\n    top: 50% !important;\n\n    transform: translateY(-50%) !important;\n\n    display: flex !important;\n\n    align-items: center !important;\n\n    justify-content: center !important;\n\n    height: 42px !important;\n\n    box-sizing: border-box !important;\n\n    padding: 0 20px !important;\n\n    margin: 0 !important;\n\n    background: #25D366 !important;\n\n    color: #ffffff !important;\n\n    border-radius: 10px !important;\n\n    text-decoration: none !important;\n\n    font-size: 13px !important;\n\n    line-height: 1 !important;\n\n    font-weight: 700 !important;\n\n    white-space: nowrap !important;\n\n    box-shadow: 0 5px 14px rgba(37, 211, 102, 0.20) !important;\n\n}\n \n \n\/* =========================================\n\n   MOBILE VIEW\n\n========================================= *\/\n \n@media (max-width: 767px) {\n \n    .tisa-whatsapp-demo {\n\n        height: 68px !important;\n\n        padding: 0 105px 0 64px !important;\n\n        border-radius: 14px !important;\n\n        margin: 22px 0 !important;\n\n    }\n \n    .tisa-whatsapp-icon {\n\n        left: 14px !important;\n\n        width: 38px !important;\n\n        height: 38px !important;\n\n    }\n \n    .tisa-whatsapp-icon img {\n\n        width: 22px !important;\n\n        height: 22px !important;\n\n    }\n \n    .tisa-whatsapp-text {\n\n        left: 62px !important;\n\n        font-size: 13px !important;\n\n        line-height: 1.2 !important;\n\n        white-space: nowrap !important;\n\n    }\n \n    .tisa-whatsapp-button {\n\n        right: 10px !important;\n\n        height: 38px !important;\n\n        padding: 0 13px !important;\n\n        border-radius: 9px !important;\n\n        font-size: 12px !important;\n\n    }\n\n}\n \n \n\/* =========================================\n\n   SMALL MOBILE\n\n========================================= *\/\n \n@media (max-width: 480px) {\n \n    .tisa-whatsapp-demo {\n\n        height: 64px !important;\n\n        padding: 0 88px 0 58px !important;\n\n        border-radius: 13px !important;\n\n    }\n \n    .tisa-whatsapp-icon {\n\n        left: 11px !important;\n\n        width: 36px !important;\n\n        height: 36px !important;\n\n    }\n \n    .tisa-whatsapp-icon img {\n\n        width: 21px !important;\n\n        height: 21px !important;\n\n    }\n \n    .tisa-whatsapp-text {\n\n        left: 55px !important;\n\n        font-size: 12px !important;\n\n    }\n \n    .tisa-whatsapp-button {\n\n        right: 8px !important;\n\n        height: 36px !important;\n\n        padding: 0 11px !important;\n\n        font-size: 11px !important;\n\n    }\n\n}\n<\/style>\n \n<div class=\"tisa-whatsapp-demo\">\n \n  <!-- WhatsApp Icon -->\n<div class=\"tisa-whatsapp-icon\">\n<img decoding=\"async\"\n\n      src=\"https:\/\/upload.wikimedia.org\/wikipedia\/commons\/6\/6b\/WhatsApp.svg\"\n\n      alt=\"WhatsApp\"\n\n      width=\"24\"\n\n      height=\"24\"\n>\n<\/div>\n \n  <!-- Text -->\n<div class=\"tisa-whatsapp-text\">\n\n    Book a Free Demo Class\n<\/div>\n \n  <!-- Button -->\n<a\n\n    href=\"https:\/\/wa.me\/919828080898\"\n\n    target=\"_blank\"\n\n    rel=\"noopener noreferrer nofollow\"\n\n    class=\"tisa-whatsapp-button\"\n>\n\n    Chat Now\n<\/a>\n \n<\/div>\n \n\n\n\n<h2 class=\"wp-block-heading\">What Does a Confusion Matrix Actually Show?<\/h2>\n\n\n\n<p>A confusion matrix compares a model&#8217;s predictions with what actually happened. It groups the results into four categories, showing where the model gets things right and where it makes mistakes.<\/p>\n\n\n\n<p>Consider a fraud detection model checking 1,000 payments. Of these, 20 are fraudulent and 980 are genuine.<\/p>\n\n\n\n\n<table style=\"width:100%; border-collapse:collapse; text-align:center; background:#fff; color:#111827;\">\n  <thead>\n    <tr style=\"background:#FF4500; color:#fff;\">\n      <th style=\"border:1px solid #D9DEE5; padding:14px;\">Actual Class \/ Predicted Class<\/th>\n      <th style=\"border:1px solid #D9DEE5; padding:14px;\">Predicted Fraud<\/th>\n      <th style=\"border:1px solid #D9DEE5; padding:14px;\">Predicted Safe<\/th>\n    <\/tr>\n  <\/thead>\n  <tbody>\n    <tr>\n      <td style=\"border:1px solid #D9DEE5; padding:14px; font-weight:600;\">Actually Fraud (20)<\/td>\n      <td style=\"border:1px solid #D9DEE5; padding:14px;\">True Positive (TP): 15<\/td>\n      <td style=\"border:1px solid #D9DEE5; padding:14px;\">False Negative (FN): 5<\/td>\n    <\/tr>\n    <tr>\n      <td style=\"border:1px solid #D9DEE5; padding:14px; font-weight:600;\">Actually Safe (980)<\/td>\n      <td style=\"border:1px solid #D9DEE5; padding:14px;\">False Positive (FP): 10<\/td>\n      <td style=\"border:1px solid #D9DEE5; padding:14px;\">True Negative (TN): 970<\/td>\n    <\/tr>\n  <\/tbody>\n<\/table>\n\n\n\n\n<p><br>Each box tells you something different:<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li><strong>True Positive (TP):<\/strong> The model correctly identifies a fraudulent payment.<\/li>\n\n\n\n<li><strong>True Negative (TN):<\/strong> The model correctly approves a genuine payment.<\/li>\n\n\n\n<li><strong>False Positive (FP):<\/strong> The model flags a genuine payment as fraud, blocking an innocent customer.<\/li>\n\n\n\n<li><strong>False Negative (FN):<\/strong> The model misses a fraudulent payment and marks it as safe.<\/li>\n<\/ul>\n\n\n\n<p>We test the model on data it did not see during training. A common split is 80% for training and 20% for testing, which shows how the model performs on unseen data. You can use scikit-learn&#8217;s <a href=\"https:\/\/scikit-learn.org\/stable\/modules\/generated\/sklearn.model_selection.train_test_split.html\" target=\"_blank\" rel=\"noreferrer noopener nofollow\">train_test_split() function<\/a> to create this split in Python.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Why Can High Accuracy Be Misleading?<\/h2>\n\n\n\n<p>Accuracy measures how many predictions a model gets right out of all predictions.<\/p>\n\n\n\n<p><strong>Accuracy = (TP + TN) \/ (TP + TN + FP + FN)<\/strong><\/p>\n\n\n\n<p>For our fraud detection model:<\/p>\n\n\n\n<p><strong>Accuracy = (15 + 970) \/ 1,000 = 98.5%<\/strong><\/p>\n\n\n\n<p>That looks impressive until you compare it with a model that marks every payment as safe. This second model catches zero frauds but still achieves 98% accuracy because 980 out of 1,000 payments are genuine. Your model&#8217;s 98.5% accuracy is barely above the 98% achieved by this do-nothing model, showing that a high accuracy score alone does not guarantee useful fraud detection.<\/p>\n\n\n\n<p>So, is 80% accuracy good in machine learning? It depends on the dataset. If 95% of transactions belong to one class, a model that always predicts that class already achieves 95% accuracy. An 80% score would actually be worse than this simple baseline.<\/p>\n\n\n\n<p>Always compare accuracy against the majority-class baseline before judging a model. As <a href=\"https:\/\/developers.google.com\/machine-learning\/crash-course\/classification\/accuracy-precision-recall\" target=\"_blank\" rel=\"noreferrer noopener nofollow\">Google&#8217;s Machine Learning Crash Course<\/a> explains, class imbalance can make accuracy misleading.<\/p>\n\n\n\n<p>Accuracy works best when classes are reasonably balanced and different types of mistakes have similar costs. When these conditions do not hold, precision, recall and F1 provide a more useful picture of model performance.<\/p>\n\n\n\n<a href=\"https:\/\/www.tisatech.in\/blog\/ai-agent-testing\/\" class=\"tisa-ar\" target=\"_blank\"><div class=\"tisa-ar-i\"><div class=\"tisa-ar-c\"><div class=\"tisa-ar-b\"><svg class=\"tisa-ar-bi\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"><path d=\"M19 4v16H7a2 2 0 0 1-2-2V6a2 2 0 0 1 2-2z\"\/><path d=\"M9 8h6M9 12h6\"\/><\/svg>Also Read<\/div><div class=\"tisa-ar-h\">AI Agent Testing: How to Test Tool Calls, Workflows and Failure Cases\n \n\n<\/div><\/div><div class=\"tisa-ar-a\"><svg viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2.5\" stroke-linecap=\"round\" stroke-linejoin=\"round\"><path d=\"M5 12h14M13 6l6 6-6 6\"\/><\/svg><\/div><\/div><\/a><style>.tisa-ar{text-decoration:none;color:inherit;display:block;margin:32px 0}.tisa-ar-i{position:relative;display:flex;align-items:stretch;background:#fff;border:1px solid #ffd9c4;border-left:6px solid #E85D24;border-radius:14px;overflow:hidden;box-shadow:0 6px 20px rgba(232,93,36,.1),0 2px 6px rgba(0,0,0,.04);font-family:'Inter','Segoe UI',Arial,sans-serif;transition:all .25s ease}.tisa-ar-c{flex:1;padding:20px 22px;display:flex;flex-direction:column;justify-content:center;min-width:0}.tisa-ar-b{display:inline-flex;align-items:center;gap:6px;background:#FFF1E8;color:#C94B17;font-size:12px;font-weight:700;padding:4px 12px;border-radius:999px;width:fit-content;margin-bottom:10px;letter-spacing:.5px;text-transform:uppercase}.tisa-ar-bi{width:14px;height:14px;flex-shrink:0}.tisa-ar-h{color:#000;font-weight:600;font-size:17px;line-height:1.45;word-break:break-word}.tisa-ar-a{flex:0 0 auto;width:70px;background:#E85D24;display:flex;align-items:center;justify-content:center;color:#fff;transition:all .25s ease}.tisa-ar-a svg{width:26px;height:26px}.tisa-ar:hover .tisa-ar-i{transform:translateY(-3px);box-shadow:0 12px 28px rgba(232,93,36,.18),0 4px 10px rgba(0,0,0,.06);border-left-width:8px}.tisa-ar:hover .tisa-ar-a{background:#C94B17}.tisa-ar:hover .tisa-ar-a svg{transform:translateX(4px);transition:transform .25s ease}@media (max-width:768px){.tisa-ar{margin:24px 0}.tisa-ar-i{border-left-width:5px;border-radius:12px}.tisa-ar-c{padding:16px 18px}.tisa-ar-h{font-size:15.5px}.tisa-ar-a{width:58px}.tisa-ar-a svg{width:22px;height:22px}}@media (max-width:480px){.tisa-ar{margin:20px 0}.tisa-ar-i{border-left-width:4px;border-radius:10px;box-shadow:0 4px 14px rgba(232,93,36,.12),0 2px 4px rgba(0,0,0,.04)}.tisa-ar-c{padding:14px 14px}.tisa-ar-b{font-size:10px;padding:3px 10px;margin-bottom:8px;letter-spacing:.3px}.tisa-ar-bi{width:12px;height:12px}.tisa-ar-h{font-size:14.5px;line-height:1.4}.tisa-ar-a{width:48px}.tisa-ar-a svg{width:20px;height:20px}}@media (max-width:360px){.tisa-ar-c{padding:12px}.tisa-ar-h{font-size:14px}.tisa-ar-a{width:44px}.tisa-ar-a svg{width:18px;height:18px}}<\/style>\n\n\n\n<h2 class=\"wp-block-heading\">How Do Precision and Recall Measure Model Performance?<\/h2>\n\n\n\n<p>Precision and recall measure two different things: how reliable a model&#8217;s alerts are and how many actual fraud cases it catches.<\/p>\n\n\n\n<p><strong>Precision = TP \/ (TP + FP)<\/strong><\/p>\n\n\n\n<p>Precision tells you how often the model is right when it flags a payment as fraud. Our model flagged 25 payments, but only 15 were fraudulent.<\/p>\n\n\n\n<p><strong>Precision = 15 \/ (15 + 10) = 0.60 (60%)<\/strong><\/p>\n\n\n\n<p>This means 60% of its fraud alerts were correct. The remaining 40% incorrectly flagged genuine customers.<\/p>\n\n\n\n<p><strong>Recall = TP \/ (TP + FN)<\/strong><\/p>\n\n\n\n<p>Recall measures how many actual fraud cases the model successfully detects. Out of 20 fraudulent payments, it caught 15 and missed five.<\/p>\n\n\n\n<p><strong>Recall = 15 \/ (15 + 5) = 0.75 (75%)<\/strong><\/p>\n\n\n\n<p>The model catches three out of every four fraud cases but misses one in four.<\/p>\n\n\n\n<p><strong>Which matters more: precision or recall?<\/strong> It depends on the application. In spam filtering, precision matters because incorrectly marking a genuine email as spam can make users miss important messages. In fraud detection, recall often matters more because missing an actual fraud case can lead to financial losses. The right priority depends on which type of mistake is more costly.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">How Does the Classification Threshold Affect Precision and Recall?<\/h2>\n\n\n\n<p>Most classification models give each prediction a score, and a threshold decides when the model labels a case as positive. For example, with a threshold of 0.70, a fraud score of 0.70 or higher triggers an alert.<\/p>\n\n\n\n<p>Lowering the threshold increases or maintains recall because the model identifies more cases as positive, but it may reduce precision by also flagging more genuine payments. Raising the threshold generally increases or maintains precision while potentially reducing recall. The right threshold depends on the cost of each mistake. You can use <a href=\"https:\/\/scikit-learn.org\/stable\/modules\/generated\/sklearn.metrics.precision_recall_curve.html\" target=\"_blank\" rel=\"noreferrer noopener nofollow\">scikit-learn&#8217;s precision-recall curve<\/a> implementation to see how both metrics change across thresholds.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">Illustrative Example: How Different Thresholds Affect Precision and Recall<\/h3>\n\n\n\n\n<table style=\"width:100%; border-collapse:collapse; text-align:center; background:#fff; color:#111827;\">\n  <thead>\n    <tr style=\"background:#FF4500; color:#fff;\">\n      <th style=\"border:1px solid #D9DEE5; padding:12px;\">Classification Threshold<\/th>\n      <th style=\"border:1px solid #D9DEE5; padding:12px;\">Precision<\/th>\n      <th style=\"border:1px solid #D9DEE5; padding:12px;\">Recall<\/th>\n      <th style=\"border:1px solid #D9DEE5; padding:12px;\">What Happens?<\/th>\n    <\/tr>\n  <\/thead>\n  <tbody>\n    <tr>\n      <td style=\"border:1px solid #D9DEE5; padding:12px;\">0.50<\/td>\n      <td style=\"border:1px solid #D9DEE5; padding:12px;\">45%<\/td>\n      <td style=\"border:1px solid #D9DEE5; padding:12px;\">90%<\/td>\n      <td style=\"border:1px solid #D9DEE5; padding:12px;\">Flags more payments and catches more fraud, but creates more false alarms.<\/td>\n    <\/tr>\n    <tr>\n      <td style=\"border:1px solid #D9DEE5; padding:12px; font-weight:600;\">0.70 (Baseline)<\/td>\n      <td style=\"border:1px solid #D9DEE5; padding:12px;\">60%<\/td>\n      <td style=\"border:1px solid #D9DEE5; padding:12px;\">75%<\/td>\n      <td style=\"border:1px solid #D9DEE5; padding:12px;\">Provides the model&#8217;s starting balance between precision and recall.<\/td>\n    <\/tr>\n    <tr>\n      <td style=\"border:1px solid #D9DEE5; padding:12px;\">0.90<\/td>\n      <td style=\"border:1px solid #D9DEE5; padding:12px;\">85%<\/td>\n      <td style=\"border:1px solid #D9DEE5; padding:12px;\">50%<\/td>\n      <td style=\"border:1px solid #D9DEE5; padding:12px;\">Flags fewer payments, improving precision but missing more fraud cases.<\/td>\n    <\/tr>\n  <\/tbody>\n<\/table>\n\n\n\n\n<p><br>These figures are illustrative. The actual results depend on the model and dataset.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">When Is the F1 Score a Useful Evaluation Metric?<\/h2>\n\n\n\n<p>The F1 score combines precision and recall into a single value between 0 and 1. It uses the harmonic mean, which gives more weight to the weaker of the two metrics.<\/p>\n\n\n\n<p><strong>F1 = 2 \u00d7 (Precision \u00d7 Recall) \/ (Precision + Recall)<\/strong><\/p>\n\n\n\n<p>For our fraud detection model:<\/p>\n\n\n\n<p><strong>F1 = 2 \u00d7 (0.60 \u00d7 0.75) \/ (0.60 + 0.75) = 0.67<\/strong><\/p>\n\n\n\n<p>F1 is useful when you want to balance false positives and false negatives, especially with imbalanced datasets. It works well for tasks such as fraud detection, fake review identification and product defect detection. However, F1 gives equal importance to precision and recall. If missing a fraud case is much more costly than flagging a genuine payment, prioritise recall instead.<\/p>\n\n\n\n<p><strong>Is an F1 score of 0.8 good?<\/strong> It can be a strong result, but there is no universal benchmark. The right score depends on the problem, the cost of mistakes and the performance your application requires. A product-tagging model may work well at 0.8, while a high-stakes medical application needs a much more careful evaluation than one F1 threshold alone.<\/p>\n\n\n\n<p>For the formula and implementation, see the official <a href=\"https:\/\/scikit-learn.org\/stable\/modules\/generated\/sklearn.metrics.f1_score.html\" target=\"_blank\" rel=\"noreferrer noopener nofollow\">scikit-learn F1 score documentation<\/a>.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">How Does ROC AUC Evaluate a Model Across Different Thresholds?<\/h2>\n\n\n\n<p>F1 measures precision and recall at one selected classification threshold. ROC AUC evaluates how well a model separates positive and negative cases across different thresholds.<\/p>\n\n\n\n<p>The <strong>ROC curve<\/strong> plots the true positive rate (recall) against the false positive rate. AUC stands for area under the curve and ranges from 0 to 1.<\/p>\n\n\n\n<p>A higher ROC AUC generally means better separation between the two classes:<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li><strong>1.0:<\/strong> Perfect ranking of positive cases above negative cases.<\/li>\n\n\n\n<li><strong>0.5:<\/strong> No better than random ranking on average.<\/li>\n\n\n\n<li><strong>Below 0.5:<\/strong> Worse than random, which usually means the scores are reversed.<\/li>\n<\/ul>\n\n\n\n<p>However, ROC AUC does not tell the whole story when fraud cases are rare. A model can achieve a strong ROC AUC while still generating many false alarms compared with the small number of actual fraud cases. In such situations, a <strong>precision-recall curve<\/strong> often provides a more useful view because it shows how precision changes as recall increases.<\/p>\n\n\n\n<p>Use ROC AUC to compare how well models rank cases, then examine precision, recall and the precision-recall curve before choosing a threshold. The official <a href=\"https:\/\/scikit-learn.org\/stable\/modules\/generated\/sklearn.metrics.roc_auc_score.html\" target=\"_blank\" rel=\"noreferrer noopener nofollow\">scikit-learn ROC AUC documentation<\/a> explains how to calculate this metric in Python.<\/p>\n\n\n\n<a href=\"https:\/\/www.tisatech.in\/blog\/scikit-learn-tutorial-for-beginners\/\" class=\"tisa-ar\" target=\"_blank\"><div class=\"tisa-ar-i\"><div class=\"tisa-ar-c\"><div class=\"tisa-ar-b\"><svg class=\"tisa-ar-bi\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"><path d=\"M19 4v16H7a2 2 0 0 1-2-2V6a2 2 0 0 1 2-2z\"\/><path d=\"M9 8h6M9 12h6\"\/><\/svg>Also Read<\/div><div class=\"tisa-ar-h\">Scikit-learn Tutorial for Beginners: Train, Test and Evaluate a Model \n\n<\/div><\/div><div class=\"tisa-ar-a\"><svg viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2.5\" stroke-linecap=\"round\" stroke-linejoin=\"round\"><path d=\"M5 12h14M13 6l6 6-6 6\"\/><\/svg><\/div><\/div><\/a><style>.tisa-ar{text-decoration:none;color:inherit;display:block;margin:32px 0}.tisa-ar-i{position:relative;display:flex;align-items:stretch;background:#fff;border:1px solid #ffd9c4;border-left:6px solid #E85D24;border-radius:14px;overflow:hidden;box-shadow:0 6px 20px rgba(232,93,36,.1),0 2px 6px rgba(0,0,0,.04);font-family:'Inter','Segoe UI',Arial,sans-serif;transition:all .25s ease}.tisa-ar-c{flex:1;padding:20px 22px;display:flex;flex-direction:column;justify-content:center;min-width:0}.tisa-ar-b{display:inline-flex;align-items:center;gap:6px;background:#FFF1E8;color:#C94B17;font-size:12px;font-weight:700;padding:4px 12px;border-radius:999px;width:fit-content;margin-bottom:10px;letter-spacing:.5px;text-transform:uppercase}.tisa-ar-bi{width:14px;height:14px;flex-shrink:0}.tisa-ar-h{color:#000;font-weight:600;font-size:17px;line-height:1.45;word-break:break-word}.tisa-ar-a{flex:0 0 auto;width:70px;background:#E85D24;display:flex;align-items:center;justify-content:center;color:#fff;transition:all .25s ease}.tisa-ar-a svg{width:26px;height:26px}.tisa-ar:hover .tisa-ar-i{transform:translateY(-3px);box-shadow:0 12px 28px rgba(232,93,36,.18),0 4px 10px rgba(0,0,0,.06);border-left-width:8px}.tisa-ar:hover .tisa-ar-a{background:#C94B17}.tisa-ar:hover .tisa-ar-a svg{transform:translateX(4px);transition:transform .25s ease}@media (max-width:768px){.tisa-ar{margin:24px 0}.tisa-ar-i{border-left-width:5px;border-radius:12px}.tisa-ar-c{padding:16px 18px}.tisa-ar-h{font-size:15.5px}.tisa-ar-a{width:58px}.tisa-ar-a svg{width:22px;height:22px}}@media (max-width:480px){.tisa-ar{margin:20px 0}.tisa-ar-i{border-left-width:4px;border-radius:10px;box-shadow:0 4px 14px rgba(232,93,36,.12),0 2px 4px rgba(0,0,0,.04)}.tisa-ar-c{padding:14px 14px}.tisa-ar-b{font-size:10px;padding:3px 10px;margin-bottom:8px;letter-spacing:.3px}.tisa-ar-bi{width:12px;height:12px}.tisa-ar-h{font-size:14.5px;line-height:1.4}.tisa-ar-a{width:48px}.tisa-ar-a svg{width:20px;height:20px}}@media (max-width:360px){.tisa-ar-c{padding:12px}.tisa-ar-h{font-size:14px}.tisa-ar-a{width:44px}.tisa-ar-a svg{width:18px;height:18px}}<\/style>\n\n\n\n<h2 class=\"wp-block-heading\">How Do MAE, RMSE and R\u00b2 Evaluate Regression Models?<\/h2>\n\n\n\n<p>Classification models predict labels, while regression models predict numerical values, such as the price of a 2BHK flat in Mansarovar. Since these predictions can be slightly or significantly wrong, regression metrics measure the difference between predicted and actual values.<\/p>\n\n\n\n<p>Three common metrics help evaluate these predictions:<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li><strong>Mean Absolute Error (MAE):<\/strong> Calculates the average absolute difference between predicted and actual values.<\/li>\n\n\n\n<li><strong>Root Mean Squared Error (RMSE):<\/strong> Squares each error, averages the results and takes the square root. This gives larger errors more weight.<\/li>\n\n\n\n<li><strong>R\u00b2 (R-squared):<\/strong> Measures how much variation in the actual values the model explains compared with a baseline that always predicts their average.<\/li>\n<\/ul>\n\n\n\n<p>Consider two models predicting flat prices:<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li><strong>Model A<\/strong> makes three errors of \u20b92 lakh each.<\/li>\n\n\n\n<li><strong>Model B<\/strong> predicts two prices correctly but misses the third by \u20b96 lakh.<\/li>\n<\/ul>\n\n\n\n<p>Both models have an MAE of \u20b92 lakh. However, their RMSE scores differ:<br><br>For Model A, all three errors are \u20b92 lakh:<\/p>\n\n\n\n<p>RMSE = \u221a[(2\u00b2 + 2\u00b2 + 2\u00b2) \/ 3] = \u20b92 lakh<\/p>\n\n\n\n<p>For Model B, the errors are \u20b90, \u20b90 and \u20b96 lakh:<\/p>\n\n\n\n<p>RMSE = \u221a[(0\u00b2 + 0\u00b2 + 6\u00b2) \/ 3] = \u221a12 = \u20b93.46 lakh<\/p>\n\n\n\n\n<table style=\"width:100%; border-collapse:collapse; text-align:center; background:#fff; color:#111827;\">\n  <thead>\n    <tr style=\"background:#FF4500; color:#fff;\">\n      <th style=\"border:1px solid #D9DEE5; padding:12px;\">Metric<\/th>\n      <th style=\"border:1px solid #D9DEE5; padding:12px;\">Model A<\/th>\n      <th style=\"border:1px solid #D9DEE5; padding:12px;\">Model B<\/th>\n    <\/tr>\n  <\/thead>\n  <tbody>\n    <tr>\n      <td style=\"border:1px solid #D9DEE5; padding:12px; font-weight:600;\">MAE<\/td>\n      <td style=\"border:1px solid #D9DEE5; padding:12px;\">\u20b92 lakh<\/td>\n      <td style=\"border:1px solid #D9DEE5; padding:12px;\">\u20b92 lakh<\/td>\n    <\/tr>\n    <tr>\n      <td style=\"border:1px solid #D9DEE5; padding:12px; font-weight:600;\">RMSE<\/td>\n      <td style=\"border:1px solid #D9DEE5; padding:12px;\">\u20b92 lakh<\/td>\n      <td style=\"border:1px solid #D9DEE5; padding:12px;\">\u20b93.46 lakh<\/td>\n    <\/tr>\n  <\/tbody>\n<\/table>\n\n\n\n\n<p><br>RMSE penalises Model B more because one large prediction error matters more than several smaller ones. Both MAE and RMSE use the same units as the predicted value, making their results easier to interpret.<\/p>\n\n\n\n<p><strong>Which metric should you use?<\/strong> Choose MAE when you want to understand the model&#8217;s average prediction error without giving unusually large errors extra weight. Choose RMSE when large mistakes carry a higher cost, such as inaccurate loan estimates or delivery-time predictions.<\/p>\n\n\n\n<p>R\u00b2 adds another perspective. An R\u00b2 of 0.85 means the model explains 85% of the variation in the target values compared with the average-value baseline. It does not mean the model makes predictions with 85% accuracy. R\u00b2 can also be negative when a model performs worse than that baseline.<\/p>\n\n\n\n<p>For practical examples and Python implementations, refer to the official <a href=\"https:\/\/scikit-learn.org\/stable\/modules\/model_evaluation.html#regression-metrics\" target=\"_blank\" rel=\"noreferrer noopener nofollow\">scikit-learn regression metrics guide<\/a>.  <\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Do Machine Learning Evaluation Metrics Also Work for ChatGPT and AI Agents?<\/h2>\n\n\n\n<p>Not all machine learning evaluation metrics apply directly to generative AI systems. Traditional metrics work well when a task has clear expected answers, but they cannot fully measure open-ended responses or an agent&#8217;s multi-step actions.<\/p>\n\n\n\n<p>Teams also evaluate:<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li><strong>Factual accuracy:<\/strong> Does the response contain correct information?<\/li>\n\n\n\n<li><strong>Instruction following:<\/strong> Does it follow the user&#8217;s requirements?<\/li>\n\n\n\n<li><strong>Task success:<\/strong> Does the system complete the requested task?<\/li>\n\n\n\n<li><strong>Tool-use reliability:<\/strong> Does an AI agent select and use the right tools?<\/li>\n\n\n\n<li><strong>Human feedback:<\/strong> Do people consider the output useful, relevant and safe?<\/li>\n<\/ul>\n\n\n\n<p>These checks form part of an evaluation process, often called AI evals. The <a href=\"https:\/\/www.tisatech.in\/blog\/how-to-evaluate-ai-agents\/\" target=\"_blank\" rel=\"noreferrer noopener\">guide to evaluating AI agents explains<\/a> how to assess agent performance through task-specific tests and combine automated scoring with human review.<\/p>\n\n\n\n<p>Pick metrics based on the system&#8217;s job. Accuracy, precision, recall and F1 work when you have clear labels, while generative AI and agents need broader tests of output quality and task completion.<\/p>\n\n\n\n<style>\n\n\/* =========================================\n\n   SOCIAL FOLLOW BANNER\n\n========================================= *\/\n \n.tisa-social-follow {\n\n    width: 100% !important;\n\n    border: 0 !important;\n\n    border-collapse: separate !important;\n\n    border-spacing: 0 !important;\n\n    background: #ffffff !important;\n\n    border-radius: 12px !important;\n\n    margin: 24px 0 !important;\n\n    overflow: hidden !important;\n\n}\n \n.tisa-social-follow-row {\n\n    border: 0 !important;\n\n}\n \n.tisa-social-follow-title {\n\n    width: auto !important;\n\n    padding: 17px 24px !important;\n\n    border: 0 !important;\n\n    background: #ffffff !important;\n\n    text-align: left !important;\n\n    vertical-align: middle !important;\n\n    font-family: Arial, sans-serif !important;\n\n    font-size: 16px !important;\n\n    font-weight: 700 !important;\n\n    color: #111111 !important;\n\n    white-space: nowrap !important;\n\n}\n \n.tisa-social-follow-icons {\n\n    width: 220px !important;\n\n    padding: 12px 24px 12px 10px !important;\n\n    border: 0 !important;\n\n    background: #ffffff !important;\n\n    text-align: right !important;\n\n    vertical-align: middle !important;\n\n    white-space: nowrap !important;\n\n}\n \n.tisa-social-follow-link {\n\n    margin: 0 7px !important;\n\n    padding: 0 !important;\n\n    text-decoration: none !important;\n\n    vertical-align: middle !important;\n\n}\n \n.tisa-social-follow-link-last {\n\n    margin: 0 0 0 7px !important;\n\n}\n \n.tisa-social-follow-icon {\n\n    width: 30px !important;\n\n    height: 30px !important;\n\n    max-width: 30px !important;\n\n    margin: 0 !important;\n\n    padding: 0 !important;\n\n    vertical-align: middle !important;\n\n}\n \n.tisa-social-follow-youtube {\n\n    width: 40px !important;\n\n    height: 30px !important;\n\n    max-width: 40px !important;\n\n    margin: 0 !important;\n\n    padding: 0 !important;\n\n    vertical-align: middle !important;\n\n}\n \n \n\/* =========================================\n\n   MOBILE VIEW\n\n========================================= *\/\n \n@media (max-width: 767px) {\n \n    .tisa-social-follow {\n\n        width: 100% !important;\n\n        margin: 20px 0 !important;\n\n    }\n \n    .tisa-social-follow-title {\n\n        padding: 14px 12px !important;\n\n        font-size: 14px !important;\n\n        white-space: normal !important;\n\n    }\n \n    .tisa-social-follow-icons {\n\n        width: 190px !important;\n\n        padding: 10px 8px 10px 4px !important;\n\n        text-align: right !important;\n\n        white-space: nowrap !important;\n\n    }\n \n    .tisa-social-follow-link {\n\n        margin: 0 3px !important;\n\n    }\n \n    .tisa-social-follow-link-last {\n\n        margin: 0 0 0 3px !important;\n\n    }\n \n    .tisa-social-follow-icon {\n\n        width: 25px !important;\n\n        height: 25px !important;\n\n        max-width: 25px !important;\n\n    }\n \n    .tisa-social-follow-youtube {\n\n        width: 33px !important;\n\n        height: 25px !important;\n\n        max-width: 33px !important;\n\n    }\n\n}\n \n \n\/* =========================================\n\n   SMALL MOBILE\n\n========================================= *\/\n \n@media (max-width: 480px) {\n \n    .tisa-social-follow-title {\n\n        padding: 13px 10px !important;\n\n        font-size: 13px !important;\n\n    }\n \n    .tisa-social-follow-icons {\n\n        width: 170px !important;\n\n        padding: 9px 6px 9px 2px !important;\n\n    }\n \n    .tisa-social-follow-link {\n\n        margin: 0 2px !important;\n\n    }\n \n    .tisa-social-follow-link-last {\n\n        margin: 0 0 0 2px !important;\n\n    }\n \n    .tisa-social-follow-icon {\n\n        width: 23px !important;\n\n        height: 23px !important;\n\n        max-width: 23px !important;\n\n    }\n \n    .tisa-social-follow-youtube {\n\n        width: 30px !important;\n\n        height: 23px !important;\n\n        max-width: 30px !important;\n\n    }\n\n}\n<\/style>\n \n \n<table role=\"presentation\" class=\"tisa-social-follow\">\n \n<tr class=\"tisa-social-follow-row\">\n \n<td class=\"tisa-social-follow-title\">\n\nFollow Us for Daily Tech Tips\n<\/td>\n \n<td class=\"tisa-social-follow-icons\">\n \n<a href=\"https:\/\/www.instagram.com\/tisa_tech\" target=\"_blank\" rel=\"noopener noreferrer\" class=\"tisa-social-follow-link\">\n<img decoding=\"async\" src=\"https:\/\/upload.wikimedia.org\/wikipedia\/commons\/a\/a5\/Instagram_icon.png\" alt=\"Instagram\" width=\"30\" height=\"30\" class=\"tisa-social-follow-icon\">\n<\/a>\n \n<a href=\"https:\/\/www.facebook.com\/tisatechjaipur\/\" target=\"_blank\" rel=\"noopener noreferrer\" class=\"tisa-social-follow-link\">\n<img decoding=\"async\" src=\"https:\/\/upload.wikimedia.org\/wikipedia\/commons\/1\/1b\/Facebook_icon.svg\" alt=\"Facebook\" width=\"30\" height=\"30\" class=\"tisa-social-follow-icon\">\n<\/a>\n \n<a href=\"https:\/\/www.linkedin.com\/company\/tisajaipur\/\" target=\"_blank\" rel=\"noopener noreferrer\" class=\"tisa-social-follow-link\">\n<img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/upload.wikimedia.org\/wikipedia\/commons\/c\/ca\/LinkedIn_logo_initials.png\" alt=\"LinkedIn\" width=\"30\" height=\"30\" class=\"tisa-social-follow-icon\">\n<\/a>\n \n<a href=\"https:\/\/x.com\/tisa_tech\" target=\"_blank\" rel=\"noopener noreferrer\" class=\"tisa-social-follow-link\">\n<img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/upload.wikimedia.org\/wikipedia\/commons\/5\/53\/X_logo_2023_original.svg\" alt=\"X\" width=\"30\" height=\"30\" class=\"tisa-social-follow-icon\">\n<\/a>\n \n<a href=\"https:\/\/www.youtube.com\/@tisa_tech\" target=\"_blank\" rel=\"noopener noreferrer\" class=\"tisa-social-follow-link tisa-social-follow-link-last\">\n<img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/upload.wikimedia.org\/wikipedia\/commons\/e\/ef\/Youtube_logo.png\" alt=\"YouTube\" width=\"40\" height=\"30\" class=\"tisa-social-follow-youtube\">\n<\/a>\n \n<\/td>\n \n<\/tr>\n<\/table>\n\n\n\n<h2 class=\"wp-block-heading\">Practical Machine Learning Training in Jaipur<\/h2>\n\n\n\n<p>Students understand accuracy, precision, recall and F1 better when they test these metrics on actual datasets. TISA-TECH&#8217;s <a href=\"https:\/\/www.tisatech.in\/artificial-intelligence\/machine-learning\/\" target=\"_blank\" rel=\"noreferrer noopener\">Machine Learning training in Jaipur<\/a> covers model training, evaluation and practical projects.<\/p>\n\n\n\n<p>They can work with datasets, train classification models and examine confusion matrices. For example, a spam detection project helps students compare precision and recall and see how changing the classification threshold affects predictions.<\/p>\n\n\n\n<p>The confusion matrix shows which spam emails the model catches, which it misses and how many genuine emails it wrongly marks as spam.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Conclusion<\/h2>\n\n\n\n<p>No single metric tells you everything about a machine learning model&#8217;s performance. Accuracy shows how many predictions are correct, precision tells you how often positive predictions are right, and recall shows how many actual positive cases the model finds. F1 combines precision and recall, while ROC AUC shows how well the model separates two classes at different thresholds.<\/p>\n\n\n\n<p>For regression models, MAE shows the average prediction error, RMSE gives more weight to larger errors, and R\u00b2 shows how well the model explains changes in the predicted values.<\/p>\n\n\n\n<p>The right metric depends on the problem and the type of mistakes the model makes. Always compare your model with a simple baseline and test it on data it has not seen before. A good score matters only when the model also performs well on new data.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">FAQs Section<\/h2>\n\n\n\n<div data-wp-context=\"{ &quot;autoclose&quot;: false, &quot;accordionItems&quot;: [] }\" data-wp-interactive=\"core\/accordion\" role=\"group\" class=\"wp-block-accordion is-layout-flow wp-block-accordion-is-layout-flow\">\n<div data-wp-class--is-open=\"state.isOpen\" data-wp-context=\"{ &quot;id&quot;: &quot;accordion-item-1&quot;, &quot;openByDefault&quot;: false }\" data-wp-init=\"callbacks.initAccordionItems\" data-wp-on-window--hashchange=\"callbacks.hashChange\" class=\"wp-block-accordion-item is-layout-flow wp-block-accordion-item-is-layout-flow\">\n<h3 class=\"wp-block-accordion-heading\"><button aria-expanded=\"false\" aria-controls=\"accordion-item-1-panel\" data-wp-bind--aria-expanded=\"state.isOpen\" data-wp-on--click=\"actions.toggle\" data-wp-on--keydown=\"actions.handleKeyDown\" id=\"accordion-item-1\" type=\"button\" class=\"wp-block-accordion-heading__toggle\"><span class=\"wp-block-accordion-heading__toggle-title\">Q1. How do I calculate precision, recall and F1 score in Python?<\/span><span class=\"wp-block-accordion-heading__toggle-icon\" aria-hidden=\"true\">+<\/span><\/button><\/h3>\n\n\n\n<div inert aria-labelledby=\"accordion-item-1\" data-wp-bind--inert=\"!state.isOpen\" id=\"accordion-item-1-panel\" role=\"region\" class=\"wp-block-accordion-panel is-layout-flow wp-block-accordion-panel-is-layout-flow\">\n<p>Ans. You can use <em>precision_score(), recall_score() <\/em>and<em> f1_score()<\/em> from scikit-learn. Pass the actual labels and model predictions to each function to calculate the scores.<\/p>\n<\/div>\n<\/div>\n<\/div>\n\n\n\n<div data-wp-context=\"{ &quot;autoclose&quot;: false, &quot;accordionItems&quot;: [] }\" data-wp-interactive=\"core\/accordion\" role=\"group\" class=\"wp-block-accordion is-layout-flow wp-block-accordion-is-layout-flow\">\n<div data-wp-class--is-open=\"state.isOpen\" data-wp-context=\"{ &quot;id&quot;: &quot;accordion-item-2&quot;, &quot;openByDefault&quot;: false }\" data-wp-init=\"callbacks.initAccordionItems\" data-wp-on-window--hashchange=\"callbacks.hashChange\" class=\"wp-block-accordion-item is-layout-flow wp-block-accordion-item-is-layout-flow\">\n<h3 class=\"wp-block-accordion-heading\"><button aria-expanded=\"false\" aria-controls=\"accordion-item-2-panel\" data-wp-bind--aria-expanded=\"state.isOpen\" data-wp-on--click=\"actions.toggle\" data-wp-on--keydown=\"actions.handleKeyDown\" id=\"accordion-item-2\" type=\"button\" class=\"wp-block-accordion-heading__toggle\"><span class=\"wp-block-accordion-heading__toggle-title\">Q2. What should I do if my model has high accuracy but low recall?<\/span><span class=\"wp-block-accordion-heading__toggle-icon\" aria-hidden=\"true\">+<\/span><\/button><\/h3>\n\n\n\n<div inert aria-labelledby=\"accordion-item-2\" data-wp-bind--inert=\"!state.isOpen\" id=\"accordion-item-2-panel\" role=\"region\" class=\"wp-block-accordion-panel is-layout-flow wp-block-accordion-panel-is-layout-flow\">\n<p>Ans. Check the confusion matrix to see how many positive cases the model misses. You can try class weights, resampling techniques or adjust the classification threshold to improve recall.<\/p>\n<\/div>\n<\/div>\n<\/div>\n\n\n\n<div data-wp-context=\"{ &quot;autoclose&quot;: false, &quot;accordionItems&quot;: [] }\" data-wp-interactive=\"core\/accordion\" role=\"group\" class=\"wp-block-accordion is-layout-flow wp-block-accordion-is-layout-flow\">\n<div data-wp-class--is-open=\"state.isOpen\" data-wp-context=\"{ &quot;id&quot;: &quot;accordion-item-3&quot;, &quot;openByDefault&quot;: false }\" data-wp-init=\"callbacks.initAccordionItems\" data-wp-on-window--hashchange=\"callbacks.hashChange\" class=\"wp-block-accordion-item is-layout-flow wp-block-accordion-item-is-layout-flow\">\n<h3 class=\"wp-block-accordion-heading\"><button aria-expanded=\"false\" aria-controls=\"accordion-item-3-panel\" data-wp-bind--aria-expanded=\"state.isOpen\" data-wp-on--click=\"actions.toggle\" data-wp-on--keydown=\"actions.handleKeyDown\" id=\"accordion-item-3\" type=\"button\" class=\"wp-block-accordion-heading__toggle\"><span class=\"wp-block-accordion-heading__toggle-title\">Q3. What is the difference between ROC AUC and F1 score?<\/span><span class=\"wp-block-accordion-heading__toggle-icon\" aria-hidden=\"true\">+<\/span><\/button><\/h3>\n\n\n\n<div inert aria-labelledby=\"accordion-item-3\" data-wp-bind--inert=\"!state.isOpen\" id=\"accordion-item-3-panel\" role=\"region\" class=\"wp-block-accordion-panel is-layout-flow wp-block-accordion-panel-is-layout-flow\">\n<p>Ans. F1 measures precision and recall at a specific classification threshold, while ROC AUC evaluates how well a model separates classes across different thresholds.<\/p>\n<\/div>\n<\/div>\n<\/div>\n\n\n\n<div data-wp-context=\"{ &quot;autoclose&quot;: false, &quot;accordionItems&quot;: [] }\" data-wp-interactive=\"core\/accordion\" role=\"group\" class=\"wp-block-accordion is-layout-flow wp-block-accordion-is-layout-flow\">\n<div data-wp-class--is-open=\"state.isOpen\" data-wp-context=\"{ &quot;id&quot;: &quot;accordion-item-4&quot;, &quot;openByDefault&quot;: false }\" data-wp-init=\"callbacks.initAccordionItems\" data-wp-on-window--hashchange=\"callbacks.hashChange\" class=\"wp-block-accordion-item is-layout-flow wp-block-accordion-item-is-layout-flow\">\n<h3 class=\"wp-block-accordion-heading\"><button aria-expanded=\"false\" aria-controls=\"accordion-item-4-panel\" data-wp-bind--aria-expanded=\"state.isOpen\" data-wp-on--click=\"actions.toggle\" data-wp-on--keydown=\"actions.handleKeyDown\" id=\"accordion-item-4\" type=\"button\" class=\"wp-block-accordion-heading__toggle\"><span class=\"wp-block-accordion-heading__toggle-title\">Q4. Why should I evaluate a model on test data instead of training data?<\/span><span class=\"wp-block-accordion-heading__toggle-icon\" aria-hidden=\"true\">+<\/span><\/button><\/h3>\n\n\n\n<div inert aria-labelledby=\"accordion-item-4\" data-wp-bind--inert=\"!state.isOpen\" id=\"accordion-item-4-panel\" role=\"region\" class=\"wp-block-accordion-panel is-layout-flow wp-block-accordion-panel-is-layout-flow\">\n<p>Ans. A model may perform well on training data because it has already learned from those examples. Test data helps check whether it can make reliable predictions on previously unseen examples.<\/p>\n<\/div>\n<\/div>\n<\/div>\n\n\n\n<div data-wp-context=\"{ &quot;autoclose&quot;: false, &quot;accordionItems&quot;: [] }\" data-wp-interactive=\"core\/accordion\" role=\"group\" class=\"wp-block-accordion is-layout-flow wp-block-accordion-is-layout-flow\">\n<div data-wp-class--is-open=\"state.isOpen\" data-wp-context=\"{ &quot;id&quot;: &quot;accordion-item-5&quot;, &quot;openByDefault&quot;: false }\" data-wp-init=\"callbacks.initAccordionItems\" data-wp-on-window--hashchange=\"callbacks.hashChange\" class=\"wp-block-accordion-item is-layout-flow wp-block-accordion-item-is-layout-flow\">\n<h3 class=\"wp-block-accordion-heading\"><button aria-expanded=\"false\" aria-controls=\"accordion-item-5-panel\" data-wp-bind--aria-expanded=\"state.isOpen\" data-wp-on--click=\"actions.toggle\" data-wp-on--keydown=\"actions.handleKeyDown\" id=\"accordion-item-5\" type=\"button\" class=\"wp-block-accordion-heading__toggle\"><span class=\"wp-block-accordion-heading__toggle-title\">Q5. Which evaluation metric should I use for an imbalanced dataset?<\/span><span class=\"wp-block-accordion-heading__toggle-icon\" aria-hidden=\"true\">+<\/span><\/button><\/h3>\n\n\n\n<div inert aria-labelledby=\"accordion-item-5\" data-wp-bind--inert=\"!state.isOpen\" id=\"accordion-item-5-panel\" role=\"region\" class=\"wp-block-accordion-panel is-layout-flow wp-block-accordion-panel-is-layout-flow\">\n<p>Ans. Precision, recall, F1 and the precision-recall curve are often more informative than accuracy when one class is much smaller than the other. Choose based on which type of prediction error matters more.<\/p>\n<\/div>\n<\/div>\n<\/div>\n","protected":false},"excerpt":{"rendered":"<p>A Jaipur shopkeeper receiving a \u20b92,000 payment may rely on a fraud detection model to assess risk using transaction details, [&hellip;]<\/p>\n","protected":false},"author":4,"featured_media":10070,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"site-sidebar-layout":"default","site-content-layout":"","ast-site-content-layout":"default","site-content-style":"default","site-sidebar-style":"default","ast-global-header-display":"","ast-banner-title-visibility":"","ast-main-header-display":"","ast-hfb-above-header-display":"","ast-hfb-below-header-display":"","ast-hfb-mobile-header-display":"","site-post-title":"","ast-breadcrumbs-content":"","ast-featured-img":"disabled","footer-sml-layout":"","ast-disable-related-posts":"","theme-transparent-header-meta":"","adv-header-id-meta":"","stick-header-meta":"","header-above-stick-meta":"","header-main-stick-meta":"","header-below-stick-meta":"","astra-migrate-meta-layouts":"default","ast-page-background-enabled":"default","ast-page-background-meta":{"desktop":{"background-color":"var(--ast-global-color-5)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"tablet":{"background-color":"","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"mobile":{"background-color":"","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""}},"ast-content-background-meta":{"desktop":{"background-color":"var(--ast-global-color-4)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"tablet":{"background-color":"var(--ast-global-color-4)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"mobile":{"background-color":"var(--ast-global-color-4)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""}},"footnotes":""},"categories":[12,93],"tags":[],"class_list":["post-10052","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-ai","category-machine-learning"],"acf":[],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v27.3 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>Precision and Recall Explained: F1 and Accuracy Made Simple<\/title>\n<meta name=\"description\" content=\"Precision and recall explained with confusion matrix, accuracy, F1, ROC-AUC and RMSE examples. Learn which machine learning metrics to use and when.\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/www.tisatech.in\/blog\/precision-and-recall-explained\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Precision and Recall Explained: F1 and Accuracy Made Simple\" \/>\n<meta property=\"og:description\" content=\"Precision and recall explained with confusion matrix, accuracy, F1, ROC-AUC and RMSE examples. Learn which machine learning metrics to use and when.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.tisatech.in\/blog\/precision-and-recall-explained\/\" \/>\n<meta property=\"og:site_name\" content=\"TISA-TECH\" \/>\n<meta property=\"article:publisher\" content=\"https:\/\/www.facebook.com\/people\/TISA-Training-Institute-For-Software-Applications\" \/>\n<meta property=\"article:published_time\" content=\"2026-11-27T06:46:39+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2026-11-27T06:46:40+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/www.tisatech.in\/blog\/wp-content\/uploads\/2026\/11\/machine-learning-imageee.webp\" \/>\n\t<meta property=\"og:image:width\" content=\"1200\" \/>\n\t<meta property=\"og:image:height\" content=\"630\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/webp\" \/>\n<meta name=\"author\" content=\"Divyanshi Sain\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:creator\" content=\"@tisa_Tech\" \/>\n<meta name=\"twitter:site\" content=\"@tisa_Tech\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Divyanshi Sain\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"12 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"TechArticle\",\"@id\":\"https:\\\/\\\/www.tisatech.in\\\/blog\\\/precision-and-recall-explained\\\/#article\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.tisatech.in\\\/blog\\\/precision-and-recall-explained\\\/\"},\"author\":{\"name\":\"Divyanshi Sain\",\"@id\":\"https:\\\/\\\/www.tisatech.in\\\/blog\\\/#\\\/schema\\\/person\\\/fde954ac3808f55a26dc44f6784777b4\"},\"headline\":\"Machine Learning Evaluation Metrics: Precision and Recall Explained with Accuracy and F1\",\"datePublished\":\"2026-11-27T06:46:39+00:00\",\"dateModified\":\"2026-11-27T06:46:40+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/www.tisatech.in\\\/blog\\\/precision-and-recall-explained\\\/\"},\"wordCount\":2182,\"commentCount\":0,\"publisher\":{\"@id\":\"https:\\\/\\\/www.tisatech.in\\\/blog\\\/#organization\"},\"image\":{\"@id\":\"https:\\\/\\\/www.tisatech.in\\\/blog\\\/precision-and-recall-explained\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/www.tisatech.in\\\/blog\\\/wp-content\\\/uploads\\\/2026\\\/11\\\/machine-learning-imageee.webp\",\"articleSection\":[\"AI &amp; Machine Learning\",\"Machine Learning\"],\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\\\/\\\/www.tisatech.in\\\/blog\\\/precision-and-recall-explained\\\/#respond\"]}]},{\"@type\":[\"WebPage\",\"CollectionPage\"],\"@id\":\"https:\\\/\\\/www.tisatech.in\\\/blog\\\/precision-and-recall-explained\\\/\",\"url\":\"https:\\\/\\\/www.tisatech.in\\\/blog\\\/precision-and-recall-explained\\\/\",\"name\":\"Precision and Recall Explained: F1 and Accuracy Made Simple\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.tisatech.in\\\/blog\\\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\\\/\\\/www.tisatech.in\\\/blog\\\/precision-and-recall-explained\\\/#primaryimage\"},\"image\":{\"@id\":\"https:\\\/\\\/www.tisatech.in\\\/blog\\\/precision-and-recall-explained\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/www.tisatech.in\\\/blog\\\/wp-content\\\/uploads\\\/2026\\\/11\\\/machine-learning-imageee.webp\",\"datePublished\":\"2026-11-27T06:46:39+00:00\",\"dateModified\":\"2026-11-27T06:46:40+00:00\",\"description\":\"Precision and recall explained with confusion matrix, accuracy, F1, ROC-AUC and RMSE examples. Learn which machine learning metrics to use and when.\",\"breadcrumb\":{\"@id\":\"https:\\\/\\\/www.tisatech.in\\\/blog\\\/precision-and-recall-explained\\\/#breadcrumb\"},\"inLanguage\":\"en-US\"},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/www.tisatech.in\\\/blog\\\/precision-and-recall-explained\\\/#primaryimage\",\"url\":\"https:\\\/\\\/www.tisatech.in\\\/blog\\\/wp-content\\\/uploads\\\/2026\\\/11\\\/machine-learning-imageee.webp\",\"contentUrl\":\"https:\\\/\\\/www.tisatech.in\\\/blog\\\/wp-content\\\/uploads\\\/2026\\\/11\\\/machine-learning-imageee.webp\",\"width\":1200,\"height\":630,\"caption\":\"Key machine learning evaluation metrics explained with accuracy, precision, recall, F1 score and their formulas.\"},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/www.tisatech.in\\\/blog\\\/precision-and-recall-explained\\\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\\\/\\\/www.tisatech.in\\\/blog\\\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Machine Learning Evaluation Metrics: Precision and Recall Explained with Accuracy and F1\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/www.tisatech.in\\\/blog\\\/#website\",\"url\":\"https:\\\/\\\/www.tisatech.in\\\/blog\\\/\",\"name\":\"TISA\",\"description\":\"\",\"publisher\":{\"@id\":\"https:\\\/\\\/www.tisatech.in\\\/blog\\\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\\\/\\\/www.tisatech.in\\\/blog\\\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Organization\",\"@id\":\"https:\\\/\\\/www.tisatech.in\\\/blog\\\/#organization\",\"name\":\"TISA (Training Institute For Software & Applications)\",\"url\":\"https:\\\/\\\/www.tisatech.in\\\/blog\\\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/www.tisatech.in\\\/blog\\\/#\\\/schema\\\/logo\\\/image\\\/\",\"url\":\"https:\\\/\\\/www.tisatech.in\\\/blog\\\/wp-content\\\/uploads\\\/2026\\\/04\\\/TISA-Training-Institute-for-Software-Applications-2-2.jpg\",\"contentUrl\":\"https:\\\/\\\/www.tisatech.in\\\/blog\\\/wp-content\\\/uploads\\\/2026\\\/04\\\/TISA-Training-Institute-for-Software-Applications-2-2.jpg\",\"width\":1200,\"height\":1200,\"caption\":\"TISA (Training Institute For Software & Applications)\"},\"image\":{\"@id\":\"https:\\\/\\\/www.tisatech.in\\\/blog\\\/#\\\/schema\\\/logo\\\/image\\\/\"},\"sameAs\":[\"https:\\\/\\\/www.facebook.com\\\/people\\\/TISA-Training-Institute-For-Software-Applications\",\"https:\\\/\\\/x.com\\\/tisa_Tech\",\"https:\\\/\\\/www.instagram.com\\\/tisa_tech\",\"https:\\\/\\\/www.linkedin.com\\\/company\\\/tisajaipur\\\/\",\"https:\\\/\\\/in.pinterest.com\\\/tisatraining\\\/\",\"https:\\\/\\\/www.youtube.com\\\/@tisa_tech\",\"https:\\\/\\\/github.com\\\/tisatechgroup\",\"https:\\\/\\\/www.trustpilot.com\\\/review\\\/tisatech.in\",\"https:\\\/\\\/maps.app.goo.gl\\\/hBXSLDHL1m6kSKxaA\"]},{\"@type\":\"Person\",\"@id\":\"https:\\\/\\\/www.tisatech.in\\\/blog\\\/#\\\/schema\\\/person\\\/fde954ac3808f55a26dc44f6784777b4\",\"name\":\"Divyanshi Sain\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/www.tisatech.in\\\/blog\\\/wp-content\\\/uploads\\\/2026\\\/05\\\/divyanshi-image.jpg\",\"url\":\"https:\\\/\\\/www.tisatech.in\\\/blog\\\/wp-content\\\/uploads\\\/2026\\\/05\\\/divyanshi-image.jpg\",\"contentUrl\":\"https:\\\/\\\/www.tisatech.in\\\/blog\\\/wp-content\\\/uploads\\\/2026\\\/05\\\/divyanshi-image.jpg\",\"caption\":\"Divyanshi Sain\"},\"description\":\"Divyanshi Sain is a tech writer at TISA-TECH with a strong eye for SEO. With 4+ years of experience, she creates clear, engaging content that breaks down complex tech topics and helps readers find exactly what they're looking for.\",\"sameAs\":[\"https:\\\/\\\/www.tisatech.in\\\/blog\",\"linkedin.com\\\/in\\\/divyanshi-sain-1a1106400\"],\"url\":\"https:\\\/\\\/www.tisatech.in\\\/blog\\\/author\\\/divyanshi\\\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Precision and Recall Explained: F1 and Accuracy Made Simple","description":"Precision and recall explained with confusion matrix, accuracy, F1, ROC-AUC and RMSE examples. Learn which machine learning metrics to use and when.","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/www.tisatech.in\/blog\/precision-and-recall-explained\/","og_locale":"en_US","og_type":"article","og_title":"Precision and Recall Explained: F1 and Accuracy Made Simple","og_description":"Precision and recall explained with confusion matrix, accuracy, F1, ROC-AUC and RMSE examples. Learn which machine learning metrics to use and when.","og_url":"https:\/\/www.tisatech.in\/blog\/precision-and-recall-explained\/","og_site_name":"TISA-TECH","article_publisher":"https:\/\/www.facebook.com\/people\/TISA-Training-Institute-For-Software-Applications","article_published_time":"2026-11-27T06:46:39+00:00","article_modified_time":"2026-11-27T06:46:40+00:00","og_image":[{"width":1200,"height":630,"url":"https:\/\/www.tisatech.in\/blog\/wp-content\/uploads\/2026\/11\/machine-learning-imageee.webp","type":"image\/webp"}],"author":"Divyanshi Sain","twitter_card":"summary_large_image","twitter_creator":"@tisa_Tech","twitter_site":"@tisa_Tech","twitter_misc":{"Written by":"Divyanshi Sain","Est. reading time":"12 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"TechArticle","@id":"https:\/\/www.tisatech.in\/blog\/precision-and-recall-explained\/#article","isPartOf":{"@id":"https:\/\/www.tisatech.in\/blog\/precision-and-recall-explained\/"},"author":{"name":"Divyanshi Sain","@id":"https:\/\/www.tisatech.in\/blog\/#\/schema\/person\/fde954ac3808f55a26dc44f6784777b4"},"headline":"Machine Learning Evaluation Metrics: Precision and Recall Explained with Accuracy and F1","datePublished":"2026-11-27T06:46:39+00:00","dateModified":"2026-11-27T06:46:40+00:00","mainEntityOfPage":{"@id":"https:\/\/www.tisatech.in\/blog\/precision-and-recall-explained\/"},"wordCount":2182,"commentCount":0,"publisher":{"@id":"https:\/\/www.tisatech.in\/blog\/#organization"},"image":{"@id":"https:\/\/www.tisatech.in\/blog\/precision-and-recall-explained\/#primaryimage"},"thumbnailUrl":"https:\/\/www.tisatech.in\/blog\/wp-content\/uploads\/2026\/11\/machine-learning-imageee.webp","articleSection":["AI &amp; Machine Learning","Machine Learning"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/www.tisatech.in\/blog\/precision-and-recall-explained\/#respond"]}]},{"@type":["WebPage","CollectionPage"],"@id":"https:\/\/www.tisatech.in\/blog\/precision-and-recall-explained\/","url":"https:\/\/www.tisatech.in\/blog\/precision-and-recall-explained\/","name":"Precision and Recall Explained: F1 and Accuracy Made Simple","isPartOf":{"@id":"https:\/\/www.tisatech.in\/blog\/#website"},"primaryImageOfPage":{"@id":"https:\/\/www.tisatech.in\/blog\/precision-and-recall-explained\/#primaryimage"},"image":{"@id":"https:\/\/www.tisatech.in\/blog\/precision-and-recall-explained\/#primaryimage"},"thumbnailUrl":"https:\/\/www.tisatech.in\/blog\/wp-content\/uploads\/2026\/11\/machine-learning-imageee.webp","datePublished":"2026-11-27T06:46:39+00:00","dateModified":"2026-11-27T06:46:40+00:00","description":"Precision and recall explained with confusion matrix, accuracy, F1, ROC-AUC and RMSE examples. Learn which machine learning metrics to use and when.","breadcrumb":{"@id":"https:\/\/www.tisatech.in\/blog\/precision-and-recall-explained\/#breadcrumb"},"inLanguage":"en-US"},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.tisatech.in\/blog\/precision-and-recall-explained\/#primaryimage","url":"https:\/\/www.tisatech.in\/blog\/wp-content\/uploads\/2026\/11\/machine-learning-imageee.webp","contentUrl":"https:\/\/www.tisatech.in\/blog\/wp-content\/uploads\/2026\/11\/machine-learning-imageee.webp","width":1200,"height":630,"caption":"Key machine learning evaluation metrics explained with accuracy, precision, recall, F1 score and their formulas."},{"@type":"BreadcrumbList","@id":"https:\/\/www.tisatech.in\/blog\/precision-and-recall-explained\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/www.tisatech.in\/blog\/"},{"@type":"ListItem","position":2,"name":"Machine Learning Evaluation Metrics: Precision and Recall Explained with Accuracy and F1"}]},{"@type":"WebSite","@id":"https:\/\/www.tisatech.in\/blog\/#website","url":"https:\/\/www.tisatech.in\/blog\/","name":"TISA","description":"","publisher":{"@id":"https:\/\/www.tisatech.in\/blog\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.tisatech.in\/blog\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Organization","@id":"https:\/\/www.tisatech.in\/blog\/#organization","name":"TISA (Training Institute For Software & Applications)","url":"https:\/\/www.tisatech.in\/blog\/","logo":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.tisatech.in\/blog\/#\/schema\/logo\/image\/","url":"https:\/\/www.tisatech.in\/blog\/wp-content\/uploads\/2026\/04\/TISA-Training-Institute-for-Software-Applications-2-2.jpg","contentUrl":"https:\/\/www.tisatech.in\/blog\/wp-content\/uploads\/2026\/04\/TISA-Training-Institute-for-Software-Applications-2-2.jpg","width":1200,"height":1200,"caption":"TISA (Training Institute For Software & Applications)"},"image":{"@id":"https:\/\/www.tisatech.in\/blog\/#\/schema\/logo\/image\/"},"sameAs":["https:\/\/www.facebook.com\/people\/TISA-Training-Institute-For-Software-Applications","https:\/\/x.com\/tisa_Tech","https:\/\/www.instagram.com\/tisa_tech","https:\/\/www.linkedin.com\/company\/tisajaipur\/","https:\/\/in.pinterest.com\/tisatraining\/","https:\/\/www.youtube.com\/@tisa_tech","https:\/\/github.com\/tisatechgroup","https:\/\/www.trustpilot.com\/review\/tisatech.in","https:\/\/maps.app.goo.gl\/hBXSLDHL1m6kSKxaA"]},{"@type":"Person","@id":"https:\/\/www.tisatech.in\/blog\/#\/schema\/person\/fde954ac3808f55a26dc44f6784777b4","name":"Divyanshi Sain","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.tisatech.in\/blog\/wp-content\/uploads\/2026\/05\/divyanshi-image.jpg","url":"https:\/\/www.tisatech.in\/blog\/wp-content\/uploads\/2026\/05\/divyanshi-image.jpg","contentUrl":"https:\/\/www.tisatech.in\/blog\/wp-content\/uploads\/2026\/05\/divyanshi-image.jpg","caption":"Divyanshi Sain"},"description":"Divyanshi Sain is a tech writer at TISA-TECH with a strong eye for SEO. With 4+ years of experience, she creates clear, engaging content that breaks down complex tech topics and helps readers find exactly what they're looking for.","sameAs":["https:\/\/www.tisatech.in\/blog","linkedin.com\/in\/divyanshi-sain-1a1106400"],"url":"https:\/\/www.tisatech.in\/blog\/author\/divyanshi\/"}]}},"_links":{"self":[{"href":"https:\/\/www.tisatech.in\/blog\/wp-json\/wp\/v2\/posts\/10052","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.tisatech.in\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.tisatech.in\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.tisatech.in\/blog\/wp-json\/wp\/v2\/users\/4"}],"replies":[{"embeddable":true,"href":"https:\/\/www.tisatech.in\/blog\/wp-json\/wp\/v2\/comments?post=10052"}],"version-history":[{"count":18,"href":"https:\/\/www.tisatech.in\/blog\/wp-json\/wp\/v2\/posts\/10052\/revisions"}],"predecessor-version":[{"id":10071,"href":"https:\/\/www.tisatech.in\/blog\/wp-json\/wp\/v2\/posts\/10052\/revisions\/10071"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.tisatech.in\/blog\/wp-json\/wp\/v2\/media\/10070"}],"wp:attachment":[{"href":"https:\/\/www.tisatech.in\/blog\/wp-json\/wp\/v2\/media?parent=10052"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.tisatech.in\/blog\/wp-json\/wp\/v2\/categories?post=10052"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.tisatech.in\/blog\/wp-json\/wp\/v2\/tags?post=10052"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}