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)
Mon code est ci-dessus. Ensuite, il montre l'erreurAttributeError: le module 'tensorflow.python.estimator.estimator_lib' n'a pas d'attribut 'LinearRegressor'
"AttributeError: module 'tensorflow.python.estimator.estimator_lib' has no attribute 'LinearRegressor'"
Python 3.5.2
Face au même problème. Python - 2.7.12 et la version Tensorflow est 1.4.1 –