Tensorflow 2:StringLookUp或categorical_column_with_vocabulary_list

问题描述

我在Tensorflow 2文档的许多教程中看到,它们使用两种不同的功能来处理分类功能

  • tf.keras.layers.experimental.preprocessing。 StringLookup
  • tf.feature_column。 categorical_column_with_vocabulary_list

从我所看到的来看,它们的工作原理非常相似,并且它们用于相同的事情...而且我还看到 categorical_column_with_vocabulary_list 存在于Tensorflow 1中,但是 StringLookUp 没有。

有人有这两种功能的经验并且能够互相解释各自的优缺点吗?

非常感谢您。

解决方法

暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!

如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。

小编邮箱:dio#foxmail.com (将#修改为@)