TypeError: BaggingClassifier.__init__() got an unexpected keyword argument ‘base_estimator’
model1 = BaggingClassifier(base_estimator=KNeighborsClassifier(),n_estimators=20,random_state=0).fit(X_train, y_train)
y_pred = model1.predict(X_test) #predict model