From cc54b3c43e4ad3e927f944b086829e7b7f53010b Mon Sep 17 00:00:00 2001 From: Arturo Moncada-Torres Date: Tue, 12 Mar 2019 17:14:06 +0100 Subject: [PATCH] Corrected naming when calling confusion_matrix --- Logistic Regression balanced.ipynb | 10 +++++----- Logistic Regression in Python - Step by Step.ipynb | 6 +++--- 2 files changed, 8 insertions(+), 8 deletions(-) diff --git a/Logistic Regression balanced.ipynb b/Logistic Regression balanced.ipynb index 987dc1d..df423b1 100644 --- a/Logistic Regression balanced.ipynb +++ b/Logistic Regression balanced.ipynb @@ -1861,8 +1861,8 @@ ], "source": [ "from sklearn.metrics import confusion_matrix\n", - "confusion_matrix = confusion_matrix(y_test, y_pred)\n", - "print(confusion_matrix)" + "conf_matrix = confusion_matrix(y_test, y_pred)\n", + "print(conf_matrix)" ] }, { @@ -1935,8 +1935,8 @@ ], "metadata": { "kernelspec": { - "display_name": "Python 3", - "language": "python", + "display_name": "Python 3 (Spyder)", + "language": "python3", "name": "python3" }, "language_info": { @@ -1949,7 +1949,7 @@ "name": "python", "nbconvert_exporter": "python", "pygments_lexer": "ipython3", - "version": "3.6.4" + "version": "3.7.1" } }, "nbformat": 4, diff --git a/Logistic Regression in Python - Step by Step.ipynb b/Logistic Regression in Python - Step by Step.ipynb index a7fcbd1..f7e128f 100644 --- a/Logistic Regression in Python - Step by Step.ipynb +++ b/Logistic Regression in Python - Step by Step.ipynb @@ -1909,8 +1909,8 @@ ], "metadata": { "kernelspec": { - "display_name": "Python 3", - "language": "python", + "display_name": "Python 3 (Spyder)", + "language": "python3", "name": "python3" }, "language_info": { @@ -1923,7 +1923,7 @@ "name": "python", "nbconvert_exporter": "python", "pygments_lexer": "ipython3", - "version": "3.6.1" + "version": "3.7.1" } }, "nbformat": 4,