Question
Data set can be downloaded from below link https://drive.google.com/file/d/1J2LbYDYxw5pPbESMbhVoDJeexIiPKOvA/view?usp=sharing data dictionary 1. age 2. sex 3. cp = chest pain type (4 values) 4. trestbps=
Data set can be downloaded from below link
https://drive.google.com/file/d/1J2LbYDYxw5pPbESMbhVoDJeexIiPKOvA/view?usp=sharing
data dictionary
1. age
2. sex
3. cp = chest pain type (4 values)
4. trestbps= resting blood pressure
5. chol= serum cholesterol in mg/dl
6. fbs= fasting blood sugar > 120 mg/dl
7. restecg= resting electrocardiographic results (values 0,1,2)
8. thalach= maximum heart rate achieved
9. exang= exercise induced angina
10. oldpeak = ST depression induced by exercise relative to rest
11. slope= the slope of the peak exercise ST segment
12. ca= number of major vessels (0-3) colored by flourosopy
13. Thal= 3 = normal; 6 = fixed defect; 7 = reversable defect
14. target= presence of heart disease or not (0,1)
A) Perform CART
B) TEST=0.3
C) MAX DEPTH 10 , MIN_SAMPLE_LEAF=5 ,MIN_SAMPLE_SPLIT=20 , RANDOM STATE=0
D)VARIABLE IMPROTANCE
E)CALCULATE AUC & ROC
F) GIVE CONFUSIONMATRIXFOR TRAINING DATA & TEST DATA
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started