我正在尝试使用tensorflow 2.0. 我查看了许多示例(https://github.com/aymericdamien/TensorFlow-Examples/blob/master/examples/2_BasicModels/random_forest.py),但这些与tensorflow 2.0. 我想弄清楚tensor_forests2.0是否支持以及在哪里可以找到它们。
我知道 contrib 模块不受支持,并且这些模块应该已移至核心或插件。但是,我找不到任何提及它已移至何处的信息。我已经运行了后台脚本,但它没有解决问题。我还尝试按照迁移指南中的建议删除 contrib 符号,但没有成功。
Traceback (most recent call last):
File "testFileUpgraded.py", line 12, in <module>
from tensorflow.contrib.tensor_forest.python import tensor_forest
ModuleNotFoundError: No module named 'tensorflow.contrib'
Run Code Online (Sandbox Code Playgroud) tensorflow ×1