小编Cel*_*eLi的帖子

AttributeError:模块'tensorflow.python.estimator.estimator_lib'没有属性'LinearRegressor'

import tensorflow as tf
import numpy as np
feature_columns = [tf.feature_column.numeric_column("x", shape=[1])]
estimator = tf.estimator.LinearRegressor(feature_columns=feature_columns)
Run Code Online (Sandbox Code Playgroud)

我的代码在上面.然后它显示错误

"AttributeError:module'tensorflow.python.estimator.estimator_lib'没有属性'LinearRegressor'"

Python 3.5.2

attributeerror python-3.x tensorflow

6
推荐指数
1
解决办法
1万
查看次数

标签 统计

attributeerror ×1

python-3.x ×1

tensorflow ×1