From e71c1647232edb6775f6b4318e5ac91ac23f091b Mon Sep 17 00:00:00 2001 From: "879837607@qq.com" <879837607@qq.com> Date: Thu, 7 Sep 2017 14:10:59 +0800 Subject: [PATCH] =?UTF-8?q?=E7=BB=83=E4=B9=A0=EF=BC=9A=E6=A8=A1=E5=9E=8B?= =?UTF-8?q?=E8=B0=83=E4=BC=98=E4=B8=AD=E8=BE=93=E5=87=BA=E8=B0=83=E4=BC=98?= =?UTF-8?q?=E5=90=8E=E7=9A=84=E6=A8=A1=E5=9E=8B?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- finding_donors.ipynb | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/finding_donors.ipynb b/finding_donors.ipynb index a252e7a..2d869e9 100644 --- a/finding_donors.ipynb +++ b/finding_donors.ipynb @@ -685,8 +685,12 @@ "predictions = (clf.fit(X_train, y_train)).predict(X_val)\n", "best_predictions = best_clf.predict(X_val)\n", "\n", + "# 汇报调优后的模型\n", + "print \"best_clf\\n------\"\n", + "print best_clf\n", + "\n", "# 汇报调参前和调参后的分数\n", - "print \"Unoptimized model\\n------\"\n", + "print \"\\nUnoptimized model\\n------\"\n", "print \"Accuracy score on validation data: {:.4f}\".format(accuracy_score(y_val, predictions))\n", "print \"F-score on validation data: {:.4f}\".format(fbeta_score(y_val, predictions, beta = 0.5))\n", "print \"\\nOptimized Model\\n------\"\n",