TensorFlow 数据预处理层

ColumDescriptionFeature TypeData Type
AgeAge in yearsNumericalinteger
Sex(1 = male; 0 = female)Categoricalinteger
CPChest pain type (0, 1, 2, 3, 4)Categoricalinteger
TrestbpdResting blood pressure (in mm Hg on admission to the hospital)Numericalinteger
CholSerum cholestoral in mg/dlNumericalinteger
FBS(fasting blood sugar > 120 mg/dl) (1 = true; 0 = false)Categoricalinteger
RestECGResting electrocardiographic results (0, 1, 2)Categoricalinteger
ThalachMaximum heart rate achievedNumericalinteger
ExangExercise induced angina (1 = yes; 0 = no)Categoricalinteger
OldpeakST depression induced by exercise relative to restNumericalinteger
SlopeThe slope of the peak exercise ST segmentNumericalfloat
CANumber of major vessels (0-3) colored by flourosopyNumericalinteger
Thal3 = normal; 6 = fixed defect; 7 = reversable defectCategoricalstring
TargetDiagnosis of heart disease (1 = true; 0 = false)Classificationinteger

根据上述数据来预测病人是否有心脏病.我们可以看到这里的数据列,不仅有data type还有frature type,
feature type其实就两种类别,一种是数值型,一种是分类型

参考:
https://tensorflow.google.cn/beta/tutorials/keras/feature_columns

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值