Member-only story
How Relevant is your HeatMap in Machine Learning Model
Proving relevant features for your machine learning model
Many of us agree with me that human mind understand graphical representation way better than any numeric forms of data. That’s the place where graphs comes into the picture. Many ML developers uses heatmap in machine learning model. But do we actually understand the meaning of it? Even we do, does it actually justify your model?
Today I will be digging deep into Seaborn heatmap and justifying using a ML model so that it answers our questions.
The actual purpose of this article to understand the meaning of the heatmap rather than creating the ML model. So we will be having little bit of background setup and little EDA(Exploratory data analysis) and more of heatmap understanding.
So close the door, grab a coffee☕ and lets start.
Problem: We will be having a classification problem data which state that does a person tent to have a heart disease if he/she has the reading involve these factors. (find the data here)
- age: age of the person in years.
- sex: 1 for male 0 for female
- cp: chest pain (0,1,2,3)
- trestbps: rest BP
- chol: cholestoral
- fbs: blood sugar on fasting.
- restecg: electrocardiographic
- thalach: maximum heart rate.
- exang: exercise with angina
- oldpeak: heart condition while exercising.
- slope: slope of the heart while exercising
- ca: indicate the blood movement
- thal: thalium stress (the more the danger)
- target: 1-person tent to have disease, 0-person dosnt tent to have any heart disease.
Alright lets start with little EDA
What kind of data do we have here?
Target will be our dependent variable and rest will be independent variable. From the file we can say…