【发布时间】:2017-01-25 15:10:25
【问题描述】:
我在https://www.tensorflow.org/versions/r0.9/tutorials/wide_and_deep/index.html 中阅读了有关该模型的信息 文章中的特征有两种类型:Categorical 和 Continuous
在我的例子中,我有一个描述用户 ID 的列,范围从 0 到 10000000
我将此列视为 Categorical 并使用 hash-bucket ,但仅获得大约 0.50010 的池 auc 值
1)是否需要使用one-hot来处理这个id列?
2)如果需要,如何实现?我找到了一个 "tf.contrib.layers.one_hot_encoding" ,但它不支持列名,所以不能在wide-n-deep demo中使用。
【问题讨论】:
标签: tensorflow