Skip to content

Commit

Permalink
images_added_3
Browse files Browse the repository at this point in the history
  • Loading branch information
vanshilshah97 committed Jan 6, 2021
1 parent 7bf1276 commit edfb597
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 27 deletions.
Binary file added images/final_plot_2.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
43 changes: 16 additions & 27 deletions zf_task_code_submit.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -2818,7 +2818,7 @@
"cell_type": "markdown",
"metadata": {},
"source": [
"#### (4430, 3210, 3358, 4271)"
"#### (4422, 3218, 3340, 4289)\n"
]
},
{
Expand All @@ -2834,19 +2834,7 @@
"cell_type": "markdown",
"metadata": {},
"source": [
"#### 0.5598374623148512"
]
},
{
"cell_type": "markdown",
"metadata": {},
"source": []
},
{
"cell_type": "markdown",
"metadata": {},
"source": [
"#### confusion matrix"
"#### 0.5621968803250754"
]
},
{
Expand Down Expand Up @@ -2917,7 +2905,7 @@
"cell_type": "markdown",
"metadata": {},
"source": [
"![corr](https://raw.githubusercontent.com/vanshilshah97/pred_maint_zf/main/images/ffeature_coeff_logreg.png)"
"![corr](https://raw.githubusercontent.com/vanshilshah97/pred_maint_zf/main/images/ffeature_coeff_logreg_2.png)"
]
},
{
Expand Down Expand Up @@ -2961,7 +2949,7 @@
"cell_type": "markdown",
"metadata": {},
"source": [
"(3914, 3726, 3207, 4422)"
"#### (4021, 3619, 3234, 4395)\n"
]
},
{
Expand All @@ -2977,7 +2965,7 @@
"cell_type": "markdown",
"metadata": {},
"source": [
"0.5796303578450649"
"#### 0.5760912308297287\n"
]
},
{
Expand Down Expand Up @@ -3010,7 +2998,7 @@
"outputs": [],
"source": [
"from xgboost import XGBClassifier\n",
"xgb = XGBClassifier()\n",
"xgb = XGBClassifier(max_depth=4,min_child_weight=0.95)\n",
"xgb.fit(x_train_subset,y_train_subset)\n"
]
},
Expand All @@ -3036,7 +3024,7 @@
"cell_type": "markdown",
"metadata": {},
"source": [
"(4390, 3250, 3356, 4273)\n"
"#### (4390, 3250, 3356, 4273)\n"
]
},
{
Expand All @@ -3052,7 +3040,7 @@
"cell_type": "markdown",
"metadata": {},
"source": [
"0.5600996198715428"
"#### 0.5943111810197929\n"
]
},
{
Expand Down Expand Up @@ -3085,7 +3073,7 @@
"outputs": [],
"source": [
"from sklearn.ensemble import RandomForestClassifier\n",
"random_forest = RandomForestClassifier(n_estimators=90)\n",
"random_forest = RandomForestClassifier(n_estimators=100,max_depth=2)\n",
"random_forest.fit(x_train_subset, y_train_subset)\n",
"y_pred = random_forest.predict(x_test_subset)"
]
Expand All @@ -3103,7 +3091,8 @@
"cell_type": "markdown",
"metadata": {},
"source": [
"#### (4347, 3293, 3559, 4070)\n"
"#### (3958, 3682, 2793, 4836)\n",
"\n"
]
},
{
Expand All @@ -3119,7 +3108,7 @@
"cell_type": "markdown",
"metadata": {},
"source": [
"#### 0.5334906278673482"
"#### 0.6338969720802202\n"
]
},
{
Expand All @@ -3146,11 +3135,11 @@
"source": []
},
{
"cell_type": "code",
"execution_count": null,
"cell_type": "markdown",
"metadata": {},
"outputs": [],
"source": []
"source": [
"![final_analysis](https://raw.githubusercontent.com/vanshilshah97/pred_maint_zf/main/images/final_plot_analysis.png.)"
]
},
{
"cell_type": "code",
Expand Down

0 comments on commit edfb597

Please sign in to comment.