【问题标题】:Tenosrflow RandomForest 'TensorForestEstimator' Example predict() and score() throws no atrribute errorTensorflow Random Forest 'TensorForestEstimator' 示例 predict() 和 score() 不会引发属性错误
【发布时间】:2017-08-10 12:36:51
【问题描述】:

我正在尝试使用 tensorflow 'TensorForestEstimator' 运行随机森林示例。以下是我在 tensorflow git repo 中使用的代码:

Github Code Link

我得到的错误:

文件“/home/mckw9/tensorflow2/lib/python3.4/site-packages/tensorflow/contrib/learn/python/learn/estimators/estimator.py”,第 1363 行,得分 eval_results, global_step = self._estimator._evaluate_model(

AttributeError: 'TensorForestEstimator' 对象没有属性 '_evaluate_model'

我正在使用 tensorflow-gpu 1.0.1、NVIDIA Titan X Pascal 12GB GDDR5X、Ubuntu 14.04、Python 3.4

【问题讨论】:

  • 值得注意的是,TensorForestEstimator 不会使用 GPU。随机森林训练没有很好的机会利用它们。

标签: python-3.x tensorflow


【解决方案1】:

Tensorflow 1.1+ 的问题消失了。

【讨论】:

猜你喜欢
  • 2014-08-07
  • 2018-06-08
  • 2015-03-21
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 2019-12-17
  • 1970-01-01
  • 2018-01-02
相关资源
最近更新 更多