Skip to content

Commit d07dbaa

Browse files
Created using Colaboratory
1 parent 030bd0e commit d07dbaa

File tree

1 file changed

+8
-6
lines changed

1 file changed

+8
-6
lines changed

08_Logistic_Regression.ipynb

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
"colab": {
66
"name": "08 Logistic Regression.ipynb",
77
"provenance": [],
8-
"authorship_tag": "ABX9TyOzdICGm/7utO3jg6uo4fdn",
8+
"authorship_tag": "ABX9TyOu3EEwuHsR/3JTtbVCA2NW",
99
"include_colab_link": true
1010
},
1111
"kernelspec": {
@@ -661,13 +661,14 @@
661661
"colab_type": "code",
662662
"colab": {
663663
"base_uri": "https://localhost:8080/",
664-
"height": 323
664+
"height": 341
665665
},
666-
"outputId": "0ec5d4c8-56ff-4b9c-997b-1c61cff2886e"
666+
"outputId": "df986f17-81c9-4bf4-e8b6-1e10fc337083"
667667
},
668668
"source": [
669669
"# Model Prediction\n",
670670
"\n",
671+
"print(\"Sample Prediction\")\n",
671672
"pred = result.predict(X_test)\n",
672673
"model_prediction = pd.DataFrame(pred.round(2),columns = ['Prediction'])\n",
673674
"model_prediction['temp'] = 'temp'\n",
@@ -686,15 +687,16 @@
686687
"print(\"Model 1, F1 Score :\",model_1_fscore)\n",
687688
"model_1_roc = roc_auc_score(y_test,y_pred)\n",
688689
"print(\"Model 1, AUC :\",model_1_roc)\n",
689-
"print(\"\\nConfusion Matrix Model 1\")\n",
690+
"print(\"\\nConfusion Matrix, Model 1\")\n",
690691
"model_1_cm = confusion_matrix(y_test,y_pred)\n",
691692
"print(model_1_cm)"
692693
],
693-
"execution_count": 10,
694+
"execution_count": 12,
694695
"outputs": [
695696
{
696697
"output_type": "stream",
697698
"text": [
699+
"Sample Prediction\n",
698700
" Prediction temp Final_Class\n",
699701
"23 0.61 temp 1\n",
700702
"81 0.62 temp 1\n",
@@ -709,7 +711,7 @@
709711
"Model 1, F1 Score : 0.46\n",
710712
"Model 1, AUC : 0.5\n",
711713
"\n",
712-
"Confusion Matrix Model 1\n",
714+
"Confusion Matrix, Model 1\n",
713715
"[[ 0 21]\n",
714716
" [ 0 9]]\n"
715717
],

0 commit comments

Comments
 (0)