From 364f9a271fd597397210db2c28019d9a0633f77c Mon Sep 17 00:00:00 2001 From: rickiepark Date: Sat, 19 May 2018 14:42:49 +0900 Subject: [PATCH] =?UTF-8?q?LabelEncoder=20=EB=B2=84=EA=B7=B8=EB=A1=9C=20?= =?UTF-8?q?=EC=9D=B8=ED=95=B4=20=EB=B0=9C=EC=83=9D=ED=95=98=EB=8A=94=20Dep?= =?UTF-8?q?recationWarning=20=EB=A7=89=EA=B8=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- 07_ensemble_learning_and_random_forests.ipynb | 13 +++++++++++++ 1 file changed, 13 insertions(+) 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,