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

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.

主站蜘蛛池模板: 潜山县| 南宫市| 华坪县| 柞水县| 平泉县| 绥中县| 张家港市| 龙海市| 乌拉特前旗| 湘潭市| 塘沽区| 历史| 万山特区| 梅州市| 禹城市| 巴林左旗| 靖宇县| 离岛区| 义马市| 鸡西市| 巴青县| 宁海县| 岑溪市| 长汀县| 拉萨市| 马边| 浑源县| 买车| 邛崃市| 苍山县| 景泰县| 邵阳市| 宁波市| 湟中县| 青铜峡市| 琼结县| 汝州市| 绥滨县| 读书| 尤溪县| 偃师市|