جنگل تصادفی، جنگل تصادفی
با مجموعهها، منظم بمانید
ذخیره و طبقهبندی محتوا براساس اولویتهای شما.
این یک گاو است.

شکل 19. یک گاو نر.
در سال 1906 مسابقه داوری وزن در انگلستان برگزار شد . 787 شرکت کننده وزن یک گاو را حدس زدند. میانگین خطای حدس های فردی 37 پوند (خطای 3.1٪) بود. با این حال، میانگین کلی حدسها تنها 9 پوند با وزن واقعی گاو (1198 پوند) فاصله داشت که خطای آن تنها 0.7٪ بود.

شکل 20. هیستوگرام حدس وزن فردی.
این حکایت حکمت جمعیت را نشان می دهد: در موقعیت های خاص، نظر جمعی قضاوت بسیار خوبی را ارائه می دهد.
از نظر ریاضی، خرد جمعیت را میتوان با قضیه حد مرکزی مدلسازی کرد: بهطور غیررسمی، مجذور خطای بین یک مقدار و میانگین N تخمینهای پر سر و صدای این مقدار با ضریب 1/N به صفر میرود. اما اگر متغیرها مستقل نباشند، واریانس بیشتر است.
در یادگیری ماشینی، یک مجموعه مجموعهای از مدلهایی است که پیشبینیهای آنها میانگین (یا به نوعی جمعآوری شده) است. اگر مدل های مجموعه به اندازه کافی متفاوت باشند بدون اینکه به صورت جداگانه بد باشند، کیفیت مجموعه به طور کلی بهتر از کیفیت هر یک از مدل های جداگانه است. یک گروه نسبت به یک مدل واحد نیاز به آموزش و زمان استنباط بیشتری دارد. به هر حال، شما باید به جای یک مدل واحد، آموزش و استنباط را روی چندین مدل انجام دهید.
به طور غیررسمی، برای اینکه یک گروه بهترین عملکرد را داشته باشد، هر مدل باید مستقل باشد. به عنوان مثال، یک گروه متشکل از 10 مدل دقیقاً یکسان (یعنی اصلاً مستقل نیستند) بهتر از مدل فردی نخواهد بود. از سوی دیگر، مجبور کردن مدل ها به مستقل بودن می تواند به معنای بدتر شدن آنها باشد. یکپارچه سازی موثر مستلزم یافتن تعادل بین استقلال مدل و کیفیت مدل های فرعی آن است.
جز در مواردی که غیر از این ذکر شده باشد،محتوای این صفحه تحت مجوز Creative Commons Attribution 4.0 License است. نمونه کدها نیز دارای مجوز Apache 2.0 License است. برای اطلاع از جزئیات، به خطمشیهای سایت Google Developers مراجعه کنید. جاوا علامت تجاری ثبتشده Oracle و/یا شرکتهای وابسته به آن است.
تاریخ آخرین بهروزرسانی 2025-07-29 بهوقت ساعت هماهنگ جهانی.
[null,null,["تاریخ آخرین بهروزرسانی 2025-07-29 بهوقت ساعت هماهنگ جهانی."],[[["\u003cp\u003eThe "wisdom of the crowd" suggests that collective opinions can provide surprisingly accurate judgments, as demonstrated by a 1906 ox weight-guessing competition where the collective guess was remarkably close to the true weight.\u003c/p\u003e\n"],["\u003cp\u003eThis phenomenon can be explained by the Central Limit Theorem, which states that the average of multiple independent estimates tends to converge towards the true value.\u003c/p\u003e\n"],["\u003cp\u003eIn machine learning, ensembles leverage this principle by combining predictions from multiple models, improving overall accuracy when individual models are sufficiently diverse and reasonably accurate.\u003c/p\u003e\n"],["\u003cp\u003eWhile ensembles require more computational resources, their enhanced predictive performance often outweighs the added cost, especially when individual models are carefully selected and combined.\u003c/p\u003e\n"],["\u003cp\u003eAchieving optimal ensemble performance involves striking a balance between ensuring model independence to avoid redundant predictions and maintaining the individual quality of sub-models for overall accuracy.\u003c/p\u003e\n"]]],[],null,["# Random Forest\n\n\u003cbr /\u003e\n\nThis is an Ox.\n\n\n**Figure 19. An ox.**\n\n\u003cbr /\u003e\n\nIn 1906, a [weight judging competition was held in\nEngland](https://www.nature.com/articles/075450a0.pdf).\n787 participants guessed the weight of an ox. The median *error* of individual\nguesses was 37 lb (an error of 3.1%). However, the overall median of the\nguesses was only 9 lb away from the real weight of the ox (1198 lb), which was\nan error of only 0.7%.\n\n**Figure 20. Histogram of individual weight guesses.**\n\nThis anecdote illustrates the\n[Wisdom of the crowd](/machine-learning/glossary#wisdom_of_the_crowd): *In\ncertain situations, collective opinion provides very good judgment.*\n\nMathematically, the wisdom of the crowd can be modeled with the\n[Central limit theorem](https://wikipedia.org/wiki/Central_limit_theorem):\nInformally, the squared error between a value and the average of N noisy\nestimates of this value tends to zero with a 1/N factor.\nHowever, if the variables are not independent, the variance is greater.\n\nIn machine learning, an\n**[ensemble](/machine-learning/glossary#ensemble)** is a collection of models\nwhose predictions are averaged (or aggregated in some way). If the ensemble\nmodels are different enough without being too bad individually, the quality of\nthe ensemble is generally better than the quality of each of the individual\nmodels. An ensemble requires more training and inference time than a single\nmodel. After all, you have to perform training and inference on multiple models\ninstead of a single model.\n\nInformally, for an ensemble to work best, the individual models should be\nindependent. As an illustration, an ensemble composed of 10 of the exact same\nmodels (that is, not independent at all) won't be better than the individual\nmodel. On the other hand, forcing models to be independent could mean making\nthem worse. Effective ensembling requires finding the balance between model\nindependence and the quality of its sub-models."]]