Giter VIP home page Giter VIP logo

kaggle-eda-heart-attack-prediction's Introduction

Heart Attack Prediction

Kaggle Data Predictions Regarding Heart Attacks

1.2 Recognizing Variable in Dataset

Variable definitions in the Dataset

  • Age: Age of the patient
  • Sex: Sex of the patient
  • exang: exercise induced angina (1 = yes; 0 = no)
  • ca: number of major vessels (0-3)
  • cp: Chest Pain type chest pain type
    • Value 1: typical angina
    • Value 2: atypical angina
    • Value 3: non-anginal pain
    • Value 4: asymptomatic
  • trtbps: resting blood pressure (in mm Hg)
  • chol: cholestoral in mg/dl fetched via BMI sensor
  • fbs: (fasting blood sugar > 120 mg/dl) (1 = true; 0 = false)
  • rest_ecg: resting electrocardiographic results
    • Value 0: normal
    • Value 1: having ST-T wave abnormality (T wave inversions and/or ST elevation or depression of > 0.05 mV)
    • Value 2: showing probable or definite left ventricular hypertrophy by Estes' criteria
  • thalach: maximum heart rate achieved
  • target: 0= less chance of heart attack 1= more chance of heart attack

Additional variable descriptions

  • age - age in years
  • sex - sex (1 = male; 0 = female)
  • cp - chest pain type (1 = typical angina; 2 = atypical angina; 3 = non-anginal pain; 0 = asymptomatic)
  • trestbps - resting blood pressure (in mm Hg on admission to the hospital)
  • chol - serum cholestoral in mg/dl
  • fbs - fasting blood sugar > 120 mg/dl (1 = true; 0 = false)
  • rest_ecg - resting electrocardiographic results (1 = normal; 2 = having ST-T wave abnormality; 0 = hypertrophy)
  • thalach - maximum heart rate achieved
  • exang - exercise induced angina (1 = yes; 0 = no)
  • oldpeak - ST depression induced by exercise relative to rest
  • slope - the slope of the peak exercise ST segment (2 = upsloping; 1 = flat; 0 = downsloping)
  • ca - number of major vessels (0-3) colored by flourosopy
  • thal - 2 = normal; 1 = fixed defect; 3 = reversable defect
  • num - the predicted attribute - diagnosis of heart disease (angiographic disease status) (Value 0 = < diameter narrowing; Value 1 = > 50% diameter narrowing)

kaggle-eda-heart-attack-prediction's People

Contributors

dekapd99 avatar

Stargazers

 avatar

Watchers

 avatar

Forkers

sdnk555

kaggle-eda-heart-attack-prediction's Issues

Google Colab: Error when Save a copy in Github

Error Message:

Failed to save notebook to https://github.com/dekapd99/Kaggle-EDA-Heart-Attack-Prediction/blob/master/Kaggle-EDA-Heart-Attack-Prediction.ipynb

Failed to save notebook to https://github.com/dekapd99/Kaggle-EDA-Heart-Attack-Prediction/blob/master/Kaggle-EDA-Heart-Attack-Prediction.ipynb
wb@https://ssl.gstatic.com/colaboratory-static/common/6d8db7bcb26ec09fd1456d2df63d36c9/external_polymer_binary_l10n__en_gb.js:93:522
ULa@https://ssl.gstatic.com/colaboratory-static/common/6d8db7bcb26ec09fd1456d2df63d36c9/external_polymer_binary_l10n__en_gb.js:2346:24
@https://ssl.gstatic.com/colaboratory-static/common/6d8db7bcb26ec09fd1456d2df63d36c9/external_polymer_binary_l10n__en_gb.js:2354:469
wa@https://ssl.gstatic.com/colaboratory-static/common/6d8db7bcb26ec09fd1456d2df63d36c9/external_polymer_binary_l10n__en_gb.js:16:65
@https://ssl.gstatic.com/colaboratory-static/common/6d8db7bcb26ec09fd1456d2df63d36c9/external_polymer_binary_l10n__en_gb.js:15:203
@https://ssl.gstatic.com/colaboratory-static/common/6d8db7bcb26ec09fd1456d2df63d36c9/external_polymer_binary_l10n__en_gb.js:17:96
c@https://ssl.gstatic.com/colaboratory-static/common/6d8db7bcb26ec09fd1456d2df63d36c9/external_polymer_binary_l10n__en_gb.js:17:345

Error Condition:
Whenever i try to Save a Copy in Github by click File > Save a Copy in Github. The error above is appearing and rejecting the saving file process. So i cannot commit and pushing any changes to Github.

Specification:
PC: Apple Macbook M2
Browser: Chrome and Safari

Error sns.countplot

for i, z in list(zip(categoric_var, categoric_axis_name)): 
plt.figure(figsize=(8, 5))
sns.countplot(i, data=df, hue="target")

plt.title(i + " - target", fontdict=title_font)
plt.xlabel(z, fontdict=axis_font)
plt.ylabel("Target", fontdict=axis_font)

plt.tight_layout()
plt.show()

TypeError Traceback (most recent call last)
in <cell line: 1>()
1 for i, z in list(zip(categoric_var, categoric_axis_name)):
2 plt.figure(figsize=(8, 5))
----> 3 sns.countplot(i, data=df, hue="target")
4
5 plt.title(i + " - target", fontdict=title_font)

TypeError: countplot() got multiple values for argument 'data'

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.