طبقه بندی: سوگیری پیش بینی
با مجموعهها، منظم بمانید
ذخیره و طبقهبندی محتوا براساس اولویتهای شما.
همانطور که در ماژول رگرسیون خطی ذکر شد، محاسبه سوگیری پیشبینی یک بررسی سریع است که میتواند مشکلات مربوط به مدل یا دادههای آموزشی را در مراحل اولیه مشخص کند.
سوگیری پیشبینی تفاوت بین میانگین پیشبینیهای یک مدل و میانگین برچسبهای حقیقت پایه در دادهها است. یک مدل آموزش دیده بر روی مجموعه داده ای که در آن 5٪ ایمیل ها هرزنامه هستند باید به طور متوسط پیش بینی کند که 5٪ از ایمیل هایی که طبقه بندی می کند هرزنامه هستند. به عبارت دیگر، میانگین برچسب ها در مجموعه داده های حقیقت زمینی 0.05 است و میانگین پیش بینی های مدل نیز باید 0.05 باشد. اگر این مورد باشد، مدل دارای سوگیری پیش بینی صفر است. البته ممکن است مدل همچنان مشکلات دیگری داشته باشد.
اگر مدل به جای آن 50 درصد موارد را پیشبینی کند که یک ایمیل هرزنامه است، مشکلی در مجموعه دادههای آموزشی، مجموعه داده جدیدی که مدل روی آن اعمال میشود، یا با خود مدل اشتباه است. هر تفاوت معنیداری بین این دو میانگین نشان میدهد که مدل دارای سوگیری پیشبینی است.
سوگیری پیش بینی می تواند ناشی از موارد زیر باشد:
- سوگیری یا نویز در داده ها، از جمله نمونه گیری بایاس برای مجموعه آموزشی
- نظم دهی خیلی قوی، به این معنی که مدل بیش از حد ساده شده بود و برخی از پیچیدگی های لازم را از دست داد
- اشکالات در خط لوله آموزش مدل
- مجموعه ویژگی های ارائه شده به مدل برای کار ناکافی است
جز در مواردی که غیر از این ذکر شده باشد،محتوای این صفحه تحت مجوز Creative Commons Attribution 4.0 License است. نمونه کدها نیز دارای مجوز Apache 2.0 License است. برای اطلاع از جزئیات، به خطمشیهای سایت Google Developers مراجعه کنید. جاوا علامت تجاری ثبتشده Oracle و/یا شرکتهای وابسته به آن است.
تاریخ آخرین بهروزرسانی 2024-10-31 بهوقت ساعت هماهنگ جهانی.
[null,null,["تاریخ آخرین بهروزرسانی 2024-10-31 بهوقت ساعت هماهنگ جهانی."],[[["\u003cp\u003ePrediction bias, calculated as the difference between the average prediction and the average ground truth, is a quick check for model or data issues.\u003c/p\u003e\n"],["\u003cp\u003eA model with zero prediction bias ideally predicts the same average outcome as observed in the ground truth data, such as a spam detection model predicting the same percentage of spam emails as actually present in the dataset.\u003c/p\u003e\n"],["\u003cp\u003eSignificant prediction bias can indicate problems in the training data, the model itself, or the new data being applied to the model.\u003c/p\u003e\n"],["\u003cp\u003eCommon causes of prediction bias include biased data, excessive regularization, bugs in the training process, and insufficient features provided to the model.\u003c/p\u003e\n"]]],[],null,["# Classification: Prediction bias\n\nAs mentioned in the\n[Linear regression](/machine-learning/crash-course/linear-regression)\nmodule, calculating\n[**prediction bias**](/machine-learning/glossary#prediction_bias)\nis a quick check that can flag issues with the model or training data\nearly on.\n\nPrediction bias is the difference between the mean of a model's\n[**predictions**](/machine-learning/glossary#prediction)\nand the mean of\n[**ground-truth**](/machine-learning/glossary#ground-truth) labels in the\ndata. A model trained on a dataset\nwhere 5% of the emails are spam should predict, on average, that 5% of the\nemails it classifies are spam. In other words, the mean of the labels in the\nground-truth dataset is 0.05, and the mean of the model's predictions should\nalso be 0.05. If this is the case, the model has zero prediction bias. Of\ncourse, the model might still have other problems.\n\nIf the model instead predicts 50% of the time that an email is spam, then\nsomething is wrong with the training dataset, the new dataset the model is\napplied to, or with the model itself. Any\nsignificant difference between the two means suggests that the model has\nsome prediction bias.\n\nPrediction bias can be caused by:\n\n- Biases or noise in the data, including biased sampling for the training set\n- Too-strong regularization, meaning that the model was oversimplified and lost some necessary complexity\n- Bugs in the model training pipeline\n- The set of features provided to the model being insufficient for the task\n\n| **Key terms:**\n|\n| - [Ground truth](/machine-learning/glossary#ground-truth)\n| - [Prediction](/machine-learning/glossary#prediction)\n- [Prediction bias](/machine-learning/glossary#prediction_bias) \n[Help Center](https://support.google.com/machinelearningeducation)"]]