- Mastering Predictive Analytics with scikit:learn and TensorFlow
- Alan Fontaine
- 106字
- 2021-07-23 16:42:25
Bagging model
Bagging is an ensemble learning model. Any estimator can be used with the bagging method. So, let's take a case where we use KNN, as shown in the following screenshot:
Using the n_estimators parameter, we can produce an ensemble of 15 individual estimators. As a result, this will produce 15 bootstrap samples of the training dataset, and then, in each of these samples, it will fit one of these KNN regressors with 20 neighbors. In the end, we will get the individual predictions by using the bagging method. The method that this algorithm uses for giving individual predictions is a majority vote.
推薦閱讀
- 基于C語言的程序設計
- Ansible Configuration Management
- Machine Learning for Cybersecurity Cookbook
- Getting Started with Clickteam Fusion
- 數據運營之路:掘金數據化時代
- 21天學通Java
- Associations and Correlations
- 計算機網絡技術基礎
- 系統安裝與重裝
- Learning Azure Cosmos DB
- 空間機器人
- Drupal高手建站技術手冊
- MongoDB 4 Quick Start Guide
- Natural Language Processing and Computational Linguistics
- 西門子S7-1200/1500 PLC從入門到精通