Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit 6e41dfd

Browse files
author
codebasics
committed
bagging
1 parent 6f604ba commit 6e41dfd

File tree

1 file changed

+16
-0
lines changed

1 file changed

+16
-0
lines changed

‎ML/19_Bagging/bagging_exercise.md‎

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
Download heart disease dataset heart.csv in [Exercise](https://github.com/codebasics/py/tree/master/ML/19_Bagging/Exercise) folder and do following, (credits of dataset: https://www.kaggle.com/fedesoriano/heart-failure-prediction)
2+
3+
1. Load heart disease dataset in pandas dataframe
4+
1. Remove outliers using Z score. Usual guideline is to remove anything that has Z score > 3 formula or Z score < -3
5+
1. Convert text columns to numbers using label encoding and one hot encoding
6+
1. Apply scaling
7+
1. Build a classification model using support vector machine. Use standalone model as well as Bagging model and check if you see any difference in the performance.
8+
1. Now use decision tree classifier. Use standalone model as well as Bagging and check if you notice any difference in performance
9+
1. Comparing performance of svm and decision tree classifier figure out where it makes most sense to use bagging and why. Use internet to figure out in what conditions bagging works the best.
10+
11+
12+
[Solution Link](https://github.com/codebasics/py/blob/master/ML/19_Bagging/Exercise/bagging_heart_disease_prediction.ipynb)
13+
14+
15+
16+

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /