【发布时间】:2017-10-24 07:49:12
【问题描述】:
在 Tensorflow 中已经有一个通过交叉列创建特征的功能 tf.feature_column.crossed_column ,但更多的是用于类别数据。数值数据呢?
例如,已经有 2 列
age = tf.feature_column.numeric_column("age")
education_num = tf.feature_column.numeric_column("education_num")
如果我想像这样根据年龄和教育数字创建第三和第四个特征列
my_feature = age * education_num
my_another_feature = age * age
怎么做?
【问题讨论】:
标签: python tensorflow machine-learning feature-extraction tensorflow-estimator