From 6e41dfd32d8d21535c436e2f62e3bfa32ee2c0a0 Mon Sep 17 00:00:00 2001 From: codebasics Date: Wed, 20 Oct 2021 08:45:26 -0400 Subject: [PATCH] bagging --- ML/19_Bagging/bagging_exercise.md | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100644 ML/19_Bagging/bagging_exercise.md diff --git a/ML/19_Bagging/bagging_exercise.md b/ML/19_Bagging/bagging_exercise.md new file mode 100644 index 00000000..378156fe --- /dev/null +++ b/ML/19_Bagging/bagging_exercise.md @@ -0,0 +1,16 @@ +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) + +1. Load heart disease dataset in pandas dataframe +1. Remove outliers using Z score. Usual guideline is to remove anything that has Z score > 3 formula or Z score < -3 +1. Convert text columns to numbers using label encoding and one hot encoding +1. Apply scaling +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. +1. Now use decision tree classifier. Use standalone model as well as Bagging and check if you notice any difference in performance +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. + + +[Solution Link](https://github.com/codebasics/py/blob/master/ML/19_Bagging/Exercise/bagging_heart_disease_prediction.ipynb) + + + + \ No newline at end of file