Skip to content

Commit db03717

Browse files
committed
Fix deprecated base_estimator in BaggingClassifier (Issue codebasics#284)
1 parent 801ee0e commit db03717

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

ML/19_Bagging/bagging_diabetes_prediction.ipynb

+4-4
Original file line numberDiff line numberDiff line change
@@ -620,7 +620,7 @@
620620
},
621621
{
622622
"cell_type": "code",
623-
"execution_count": 98,
623+
"execution_count": null,
624624
"metadata": {},
625625
"outputs": [
626626
{
@@ -638,7 +638,7 @@
638638
"from sklearn.ensemble import BaggingClassifier\n",
639639
"\n",
640640
"bag_model = BaggingClassifier(\n",
641-
" base_estimator=DecisionTreeClassifier(), \n",
641+
" estimator=DecisionTreeClassifier(), \n",
642642
" n_estimators=100, \n",
643643
" max_samples=0.8, \n",
644644
" oob_score=True,\n",
@@ -670,7 +670,7 @@
670670
},
671671
{
672672
"cell_type": "code",
673-
"execution_count": 100,
673+
"execution_count": null,
674674
"metadata": {},
675675
"outputs": [
676676
{
@@ -686,7 +686,7 @@
686686
],
687687
"source": [
688688
"bag_model = BaggingClassifier(\n",
689-
" base_estimator=DecisionTreeClassifier(), \n",
689+
" estimator=DecisionTreeClassifier(), \n",
690690
" n_estimators=100, \n",
691691
" max_samples=0.8, \n",
692692
" oob_score=True,\n",

0 commit comments

Comments
 (0)