AttributeError: module 'tensorflow.python.Schätzer.estimator_lib' hat kein Attribut '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)
Mein code ist oben.
Es zeigt dann den Fehler
"AttributeError: module 'tensorflow.python.Schätzer.estimator_lib' hat kein Attribut 'LinearRegressor'"
Python 3.5.2
- Vor dem gleichen problem hier. Python - 2.7.12 und Tensorflow version ist 1.4.1
Du musst angemeldet sein, um einen Kommentar abzugeben.
Könnte Sie ältere tensorflow version, als
tf.Schätzer.LinearRegressor
enthaltentensorflow=1.3.0
.aktualisieren Sie Ihre tensorflow installation