python - 使用 WALS 方法在 tensorflow 2.0 中进行矩阵分解
问题描述
我正在使用 WALS 方法来执行矩阵分解。最初在 tensorflow 1.13 中,我可以使用导入 factorization_ops
from tensorflow.contrib.factorization.python.ops import factorization_ops
Wals 模型可以通过使用从 factorization_ops 调用
factorization_ops.WALSModel
在 tensorflow 2.0 中使用相同的命令给我以下错误
ModuleNotFoundError:没有名为“tensorflow.contrib.factorization”的模块
通过这个问题,似乎没有办法在 tensorflow 2.0+ 中使用 WALSModel。
此外,在 tensorflow 发布更新中也提到过tf.contrib 已被弃用,功能已迁移到核心 TensorFlow API、生态系统项目(如 tensorflow/addons 或 tensorflow/io),或完全删除。
如何在 tensorflow 2.0 中使用 WALS 模型(目前我在 windows 机器上使用 2.0.0-rc0)?WALSModel 是否已被删除或者我错过了一些信息?
解决方案
推荐阅读
- python - KV 语言矩形 self.size 不起作用
- javascript - 如何解决运行反应项目的问题?
- python - Ubuntu:selenium.common.exceptions:未创建会话:此版本的 ChromeDriver 仅支持 Chrome 版本 79
- asynchronous - 如何在 Dart 中一次处理列表 2 中的项目
- python - 选择不包括某些特定单词的单词 - 正则表达式
- web-hosting - 将外部邮件程序与 IMSCP/I-MSCP 邮件服务器一起使用
- mysql - 如何总结表中每个唯一的最后一个值
- javascript - 脚本中没有定义Javascript函数?
- html - 在 Bootstrap 网格中对齐大小不等的图像
- python - Tkinter 滚动框架:扩展框架以适应一个方向的内容画布