【问题标题】:Tensorflow - How to convert feature_column to vectorTensorflow - 如何将特征列转换为向量
【发布时间】:2019-06-20 21:12:48
【问题描述】:

我正在构建一个Array[feature_column],但我需要将我的数据框传递给一个以tf.placeholder 作为输入的自定义估计器。

有没有办法通过某些东西传递我的数据框,将我的 feature_column 转换为原始的 placeholder

【问题讨论】:

    标签: python tensorflow tensorflow2.0


    【解决方案1】:

    我在那里找到了答案:https://www.tensorflow.org/beta/tutorials/keras/feature_columns

    基本上答案是关于这一行的:

    feature_layer = tf.keras.layers.DenseFeatures(feature_columns)
    

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 2020-09-08
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多