Python Machine Learning
Bootstrap Aggregation
Bagging technique
Bootstrap Aggregation
Bootstrap Aggregation (bagging) is a general purpose procedure for reducing the variance of a statistical learning method.
Bootstrap Aggregation Example
from sklearn.ensemble import BaggingClassifier
from sklearn import tree
model = BaggingClassifier(tree.DecisionTreeClassifier(random_state=1))
model.fit(x_train, y_train)
model.score(x_test, y_test)