官术网_书友最值得收藏!

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.

主站蜘蛛池模板: 西宁市| 奈曼旗| 和顺县| 九龙县| 新和县| 永昌县| 子洲县| 凉山| 西青区| 嘉义县| 安龙县| 云南省| 内黄县| 常熟市| 清苑县| 阿合奇县| 青铜峡市| 定南县| 焉耆| 岐山县| 舞阳县| 元氏县| 新建县| 西乡县| 金华市| 衡南县| 保德县| 赣榆县| 吉林市| 平江县| 灵石县| 融水| 腾冲县| 奈曼旗| 河间市| 翁牛特旗| 武宁县| 化州市| 奇台县| 彩票| 玛曲县|