Colum | Description | Feature Type | Data Type |
---|---|---|---|
Age | Age in years | Numerical | integer |
Sex | (1 = male; 0 = female) | Categorical | integer |
CP | Chest pain type (0, 1, 2, 3, 4) | Categorical | integer |
Trestbpd | Resting blood pressure (in mm Hg on admission to the hospital) | Numerical | integer |
Chol | Serum cholestoral in mg/dl | Numerical | integer |
FBS | (fasting blood sugar > 120 mg/dl) (1 = true; 0 = false) | Categorical | integer |
RestECG | Resting electrocardiographic results (0, 1, 2) | Categorical | integer |
Thalach | Maximum heart rate achieved | Numerical | integer |
Exang | Exercise induced angina (1 = yes; 0 = no) | Categorical | integer |
Oldpeak | ST depression induced by exercise relative to rest | Numerical | integer |
Slope | The slope of the peak exercise ST segment | Numerical | float |
CA | Number of major vessels (0-3) colored by flourosopy | Numerical | integer |
Thal | 3 = normal; 6 = fixed defect; 7 = reversable defect | Categorical | string |
Target | Diagnosis of heart disease (1 = true; 0 = false) | Classification | integer |
根据上述数据来预测病人是否有心脏病.我们可以看到这里的数据列,不仅有data type
还有frature type
,
feature type
其实就两种类别,一种是数值型,一种是分类型
参考:
https://tensorflow.google.cn/beta/tutorials/keras/feature_columns