LabelEncoder 버그로 인해 발생하는 DeprecationWarning 막기
This commit is contained in:
@@ -194,6 +194,19 @@
|
||||
"voting_clf.fit(X_train, y_train)"
|
||||
]
|
||||
},
|
||||
{
|
||||
"cell_type": "code",
|
||||
"execution_count": null,
|
||||
"metadata": {},
|
||||
"outputs": [],
|
||||
"source": [
|
||||
"# LabelEncoder 버그로 인해 생기는 DeprecationWarning 막기\n",
|
||||
"# https://github.com/scikit-learn/scikit-learn/pull/9816\n",
|
||||
"# https://stackoverflow.com/questions/49545947/sklearn-deprecationwarning-truth-value-of-an-array\n",
|
||||
"import warnings\n",
|
||||
"warnings.filterwarnings(action='ignore', category=DeprecationWarning)"
|
||||
]
|
||||
},
|
||||
{
|
||||
"cell_type": "code",
|
||||
"execution_count": 7,
|
||||
|
||||
Reference in New Issue
Block a user