diff --git a/07_ensemble_learning_and_random_forests.ipynb b/07_ensemble_learning_and_random_forests.ipynb index 17beb08..9a2251a 100644 --- a/07_ensemble_learning_and_random_forests.ipynb +++ b/07_ensemble_learning_and_random_forests.ipynb @@ -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,