【发布时间】:2019-10-13 11:00:06
【问题描述】:
我正在使用 Tensorflow 来计算 DELF 特征。 我正在使用来自 tensorflow 模型的下一个示例: github。
所以这里有一行:
kmeans = tf.estimator.experimental.KMeans(...)
但我没有这样的模型:
属性错误:模块 'tensorflow_estimator.python.estimator.api.estimator.experimental' 有 没有属性“KMeans”
我的配置:
张量板 1.13.1 py37hf484d3e_0
张量流 1.13.1 gpu_py37hc158e3b_0
tensorflow-base 1.13.1 gpu_py37h8d69cac_0
张量流估计器 1.13.0 py_0
张量流-GPU 1.13.1 h0d30ee6_0
看起来这个模型被替换了,但我找不到在哪里。
【问题讨论】:
-
@Vishal 你是对的 - 我试过
tf.contrib.factorization.KMeansClustering()并且它有效。正确的答案我会接受的。
标签: python tensorflow k-means