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